home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCDofFocalDistNoUV_PS20$D3D9_PS20$NoFog$HDR$MRT.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  692 b   |  36 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 $DofFocalParams;
  11. //
  12. //
  13. // Registers:
  14. //
  15. //   Name            Reg   Size
  16. //   --------------- ----- ----
  17. //   $DofFocalParams c0       1
  18. //
  19.  
  20.     ps_2_0
  21.     def c1, 0.00048828125, 1, 0, 0
  22.     dcl t0
  23.     mov r0.w, c1.x
  24.     mul_sat r1.w, r0.w, c0.x
  25.     mul_sat r2.w, t0.w, c1.x
  26.     add r1.w, r1.w, -r2.w
  27.     abs r1.w, r1.w
  28.     mul r0.w, r0.w, c0.y
  29.     rcp r0.w, r0.w
  30.     mul r0.w, r1.w, r0.w
  31.     mov_sat r0.xyz, r0.w
  32.     mov r0.w, c1.y
  33.     mov oC0, r0
  34.  
  35. // approximately 11 instruction slots used
  36.