home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCGlare$D3D9_PS11$NoFog.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  1.3 KB  |  40 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.ScreenTex : TEXUNIT0
  10. //semantic main.GlareTex : TEXUNIT1
  11. //semantic main.vSaturationAmount
  12. //semantic main.vConstrastAmount
  13. //semantic main.vConstrastAmount02
  14. //semantic main.GlobalFogColor : C7
  15. //var sampler2D ScreenTex : TEXUNIT0 : texunit 0 : 1 : 1
  16. //var sampler2D GlareTex : TEXUNIT1 : texunit 1 : 2 : 1
  17. //var float4 vSaturationAmount :  : c[2] : 3 : 1
  18. //var float4 vConstrastAmount :  :  : 4 : 1
  19. //var float4 vConstrastAmount02 :  :  : 5 : 1
  20. //var float3 GlobalFogColor : C7 : c[7] : 6 : 1
  21. //var float4 IN.Tex0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
  22. //var float4 IN.Tex1 : $vin.TEXCOORD1 : TEXCOORD1 : 0 : 1
  23. //var float4 main.Color : $vout.COLOR : COLOR : -1 : 1
  24. ps.1.1
  25. def c0, 0.000000, 0.000000, 1.000000, 0.000000
  26. def c1, 0.300000, 0.590000, 0.110000, 0.000000
  27. def c3, 0.000000, 0.000000, 1.000000, -1.000000
  28. tex t0
  29. tex t1
  30. dp3 t2.rgb, t0, c1
  31. add_sat t1.rgb, t1, t0
  32. + mad t0.a, c2.a, c3.a, c3.b
  33. mov r0.rgb, t2
  34. lrp_sat t0.rgb, r0, t1, t0
  35. mul r0.rgb, t2, c2.a
  36. mad_sat r0.rgb, t0, t0.a, r0
  37. + mov r0.a, c0.b
  38. // 8 instructions
  39. // End of program
  40.