home *** CD-ROM | disk | FTP | other *** search
- //CGVER3.4
- //
- // Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
- //
- // fxc /T ps_2_0 /DCGC=0 /Fc $$out.cg $$in.cg
- //
- //
- // Parameters:
- //
- // float4 $Ambient;
- // float4 $DepthTestHardness;
- // float4 $Fading;
- // sampler2D $baseMap;
- // sampler2D $shadMap0;
- // sampler2D $shadMap1;
- // sampler2D $shadMap2;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // ------------------ ----- ----
- // $Ambient c0 1
- // $Fading c1 1
- // $DepthTestHardness c2 1
- // $shadMap0 s0 1
- // $shadMap1 s1 1
- // $shadMap2 s2 1
- // $baseMap s3 1
- //
-
- ps_2_0
- def c3, 0.125, 1, 0, 0
- dcl t0
- dcl t1
- dcl t2
- dcl t3.xy
- dcl t4
- dcl t5.xy
- dcl_2d s0
- dcl_2d s1
- dcl_2d s2
- dcl_2d s3
- texldp r3, t0, s0
- texldp r2, t1, s1
- texldp r1, t2, s2
- texld r0, t3, s3
- rcp r0.w, t4.y
- mul r4.x, r0.w, t4.x
- rcp r0.w, t4.w
- mul r4.y, r0.w, t4.z
- rcp r0.w, t5.y
- mul r4.z, r0.w, t5.x
- mad r3.x, r3.x, c3.x, r3.y
- mad r3.y, r2.x, c3.x, r2.y
- mad r3.z, r1.x, c3.x, r1.y
- add r1.xyz, -r4, r3
- mul_sat r1.xyz, -r1, c2
- mul r1.xyz, r1, c1
- mul r1.x, r3.w, r1.x
- mul r1.y, r2.w, r1.y
- mul r1.z, r1.w, r1.z
- dp3_sat r0.w, r1, c3.y
- mul r0.xyz, r0, c0
- mov oC0, r0
-
- // approximately 22 instruction slots used (4 texture, 18 arithmetic)
-