home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCLight_InvProjSingleLight$D3D9_PS11$NoFog.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  995 b   |  31 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.projMap : TEXUNIT0
  10. //semantic main.attenMap : TEXUNIT1
  11. //semantic main.Ambient
  12. //semantic main.GlobalFogColor : C7
  13. //var samplerCUBE projMap : TEXUNIT0 : texunit 0 : 1 : 1
  14. //var sampler2D attenMap : TEXUNIT1 : texunit 1 : 2 : 1
  15. //var float4 Ambient :  : c[0] : 3 : 1
  16. //var float3 GlobalFogColor : C7 : c[7] : 4 : 1
  17. //var float4 IN.Tex0 : $vin.TEXCOORD0 : TEXCOORD0 : 0 : 1
  18. //var float4 IN.Tex1 : $vin.TEXCOORD1 : TEXCOORD1 : 0 : 1
  19. //var float4 IN.Color : $vin.COLOR0 : COLOR0 : 0 : 1
  20. //var float4 main.Color : $vout.COLOR : COLOR : -1 : 1
  21. ps.1.1
  22. tex t0
  23. tex t1
  24. mov_sat r0.a, t1.b
  25. mad_sat t0.a, v0_bx2.b, -v0_bx2.b, 1-r0.a
  26. mul t0.a, t0.a, v0.a
  27. lrp r0.rgb, t0.a, c0, t0
  28. + mov r0.a, c0.a
  29. // 6 instructions
  30. // End of program
  31.