home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCShadowTempl$D3D9_Auto$NoFog$HDR$MRT(90000000).cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  1.3 KB  |  61 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 $DepthTestHardness;
  12. //   float4 $Fading;
  13. //   sampler2D $baseMap;
  14. //   sampler2D $shadMap0;
  15. //   sampler2D $shadMap1;
  16. //
  17. //
  18. // Registers:
  19. //
  20. //   Name               Reg   Size
  21. //   ------------------ ----- ----
  22. //   $Ambient           c0       1
  23. //   $Fading            c1       1
  24. //   $DepthTestHardness c2       1
  25. //   $shadMap0          s0       1
  26. //   $shadMap1          s1       1
  27. //   $baseMap           s2       1
  28. //
  29.  
  30.     ps_2_0
  31.     def c3, 0.125, 0, 1, 0
  32.     dcl t0
  33.     dcl t1
  34.     dcl t2.xy
  35.     dcl t3
  36.     dcl_2d s0
  37.     dcl_2d s1
  38.     dcl_2d s2
  39.     texldp r2, t0, s0
  40.     texldp r1, t1, s1
  41.     texld r0, t2, s2
  42.     rcp r0.w, t3.y
  43.     mul r3.x, r0.w, t3.x
  44.     rcp r0.w, t3.w
  45.     mul r3.y, r0.w, t3.z
  46.     mov r3.xy, -r3
  47.     mov r2.z, c3.y
  48.     mov r3.z, c3.y
  49.     mad r2.x, r2.x, c3.x, r2.y
  50.     mad r2.y, r1.x, c3.x, r1.y
  51.     add r1.xyz, r3, r2
  52.     mul_sat r1.xyz, -r1, c2
  53.     mul r1.xyz, r1, c1
  54.     mul r1.x, r2.w, r1.x
  55.     mul r1.y, r1.w, r1.y
  56.     dp3_sat r0.w, r1, c3.z
  57.     mul r0.xyz, r0, c0
  58.     mov oC0, r0
  59.  
  60. // approximately 20 instruction slots used (3 texture, 17 arithmetic)
  61.