home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCGlareMap$D3D9_PS11$NoFog.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  1.0 KB  |  35 lines

  1. //CGVER3.4
  2. // Pixel Shader 1.1 generated by NVIDIA Cg compiler
  3. // cgc version 1.2.1001, build date Jun 11 2004  18:11:01
  4. // command line args: -q -profile ps_1_1 -entry main -DCGC=1
  5. //vendor NVIDIA Corporation
  6. //version 1.0.02
  7. //profile ps_1_1
  8. //program main
  9. //semantic main.baseMap : TEXUNIT0
  10. //semantic main.glareAmountMap : TEXUNIT1
  11. //semantic main.vGlare
  12. //semantic main.vGlareAmount
  13. //semantic main.GlobalFogColor : C7
  14. //var sampler2D baseMap : TEXUNIT0 : texunit 0 : 1 : 1
  15. //var sampler2D glareAmountMap : TEXUNIT1 : texunit 1 : 2 : 1
  16. //var float4 vGlare :  : c[0] : 3 : 1
  17. //var float4 vGlareAmount :  : c[1] : 4 : 1
  18. //var float3 GlobalFogColor : C7 : c[7] : 5 : 1
  19. //var float4 IN.Tex0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
  20. //var float4 IN.Tex1 : $vin.TEXCOORD1 : TEXCOORD1 : 0 : 1
  21. //var float4 main.Color : $vout.COLOR : COLOR : -1 : 1
  22. ps.1.1
  23. tex t0
  24. tex t1
  25. add_sat t0.rgb, t0, c0
  26. + mov r0.a, t1.b
  27. mul t0.rgb, t0, c0.a
  28. mov_x2 t2.rgb, t0
  29. mov_sat r0.rgb, t1
  30. add_sat t3.rgb, 1-r0, c1
  31. mul t0.rgb, t0, t2
  32. mul r0.rgb, t0, t3
  33. // 9 instructions
  34. // End of program
  35.