home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCAmbientTempl$D3D9_Auto$NoFog$HDR$MRT(2001240).cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  972 b   |  48 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 $Ambient;
  11. //   float4 $Reflect;
  12. //   sampler2D $baseMap;
  13. //   samplerCUBE $envMap;
  14. //   sampler2D $lightMap;
  15. //
  16. //
  17. // Registers:
  18. //
  19. //   Name         Reg   Size
  20. //   ------------ ----- ----
  21. //   $Ambient     c0       1
  22. //   $Reflect     c1       1
  23. //   $baseMap     s0       1
  24. //   $lightMap    s1       1
  25. //   $envMap      s2       1
  26. //
  27.  
  28.     ps_2_0
  29.     def c2, 4, 0, 0, 0
  30.     dcl t0.xy
  31.     dcl t1.xy
  32.     dcl t2.xyz
  33.     dcl_2d s0
  34.     dcl_2d s1
  35.     dcl_cube s2
  36.     texld r2, t2, s2
  37.     texld r0, t0, s0
  38.     texld r1, t1, s1
  39.     mad r2.xyz, r0, -c0, r2
  40.     mul r2.xyz, r2, c1.w
  41.     mad r2.xyz, r0, c0, r2
  42.     mul r0.xyz, r0, r1
  43.     mad r0.xyz, r0, c2.x, r2
  44.     mov r0.w, c0.w
  45.     mov oC0, r0
  46.  
  47. // approximately 10 instruction slots used (3 texture, 7 arithmetic)
  48.