home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCDecal_VF$D3D9_PS20$NoFog$HDR$MRT.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  907 b   |  46 lines

  1. //CGVER3.4
  2. //
  3. // Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
  4. //
  5. //   fxc /T ps_2_0 /DCGC=0 /Fc $$out.cg $$in.cg
  6. //
  7. //
  8. // Parameters:
  9. //
  10. //   float4 $FogColor;
  11. //   sampler2D $baseMap;
  12. //   sampler2D $fogEnterMap;
  13. //   sampler2D $fogMap;
  14. //
  15. //
  16. // Registers:
  17. //
  18. //   Name         Reg   Size
  19. //   ------------ ----- ----
  20. //   $FogColor    c0       1
  21. //   $baseMap     s0       1
  22. //   $fogMap      s1       1
  23. //   $fogEnterMap s2       1
  24. //
  25.  
  26.     ps_2_0
  27.     def c1, 1, 0, 0, 0
  28.     dcl t0.xy
  29.     dcl t1.xy
  30.     dcl t2.xy
  31.     dcl v0
  32.     dcl_2d s0
  33.     dcl_2d s1
  34.     dcl_2d s2
  35.     texld r0, t0, s0
  36.     texld r1, t1, s1
  37.     texld r2, t2, s2
  38.     mul r0, r0, v0
  39.     mad r3.w, r1.w, -r2.w, c1.x
  40.     mul r1.w, r1.w, r2.w
  41.     mul r0.xyz, r0, r3.w
  42.     mad r0.xyz, c0, r1.w, r0
  43.     mov oC0, r0
  44.  
  45. // approximately 9 instruction slots used (3 texture, 6 arithmetic)
  46.