home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 January / Gamestar_69_2005-01_dvd.iso / Dema / theprojectv1-0.exe / Shaders / Cache / CGPShaders / CGRCGlareAmount$D3D9_PS20$NoFog$HDR$MRT.cgps < prev    next >
Encoding:
Text File  |  2004-11-27  |  1.1 KB  |  54 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 $Glare;
  11. //   sampler2D $texScreen01;
  12. //   sampler2D $texScreen02;
  13. //   sampler2D $texScreen03;
  14. //   sampler2D $texScreen04;
  15. //
  16. //
  17. // Registers:
  18. //
  19. //   Name         Reg   Size
  20. //   ------------ ----- ----
  21. //   $Glare       c0       1
  22. //   $texScreen01 s0       1
  23. //   $texScreen02 s1       1
  24. //   $texScreen03 s2       1
  25. //   $texScreen04 s3       1
  26. //
  27.  
  28.     ps_2_0
  29.     def c1, 0.25, 4, 0, 0
  30.     def c2, 0.300000012, 0.589999974, 0.109999999, 0
  31.     dcl t0.xy
  32.     dcl t1.xy
  33.     dcl t2.xy
  34.     dcl t3.xy
  35.     dcl_2d s0
  36.     dcl_2d s1
  37.     dcl_2d s2
  38.     dcl_2d s3
  39.     texld r3, t1, s1
  40.     texld r2, t0, s0
  41.     texld r1, t2, s2
  42.     texld r0, t3, s3
  43.     mul r3.xyz, r3, c1.x
  44.     mad r2.xyz, r2, c1.x, r3
  45.     mad r1.xyz, r1, c1.x, r2
  46.     mad_sat r0.xyz, r0, c1.x, r1
  47.     mul r0.xyz, r0, r0
  48.     mul_sat r0.xyz, r0, c1.y
  49.     dp3 r0.xyz, c2, r0
  50.     mov r0.w, c0.w
  51.     mov oC0, r0
  52.  
  53. // approximately 13 instruction slots used (4 texture, 9 arithmetic)
  54.