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;
- // float4 $Reflect;
- // sampler2D $baseMap;
- // samplerCUBE $envMap;
- // sampler2D $shadMap0;
- // sampler2D $shadMap1;
- // sampler2D $shadMap2;
- //
- //
- // Registers:
- //
- // Name Reg Size
- // ------------------ ----- ----
- // $Ambient c0 1
- // $Fading c1 1
- // $DepthTestHardness c2 1
- // $Reflect c3 1
- // $shadMap0 s0 1
- // $shadMap1 s1 1
- // $shadMap2 s2 1
- // $baseMap s3 1
- // $envMap s4 1
- //
-
- ps_2_0
- def c4, 0.125, 1, 0, 0
- dcl t0
- dcl t1
- dcl t2
- dcl t3.xy
- dcl t4
- dcl t5.xy
- dcl t6.xyz
- dcl_2d s0
- dcl_2d s1
- dcl_2d s2
- dcl_2d s3
- dcl_cube s4
- texldp r4, t0, s0
- texldp r3, t1, s1
- texldp r2, t2, s2
- texld r1, t6, s4
- texld r0, t3, s3
- rcp r0.w, t4.y
- mul r5.x, r0.w, t4.x
- rcp r0.w, t4.w
- mul r5.y, r0.w, t4.z
- rcp r0.w, t5.y
- mul r5.z, r0.w, t5.x
- mad r4.x, r4.x, c4.x, r4.y
- mad r4.y, r3.x, c4.x, r3.y
- mad r4.z, r2.x, c4.x, r2.y
- add r2.xyz, -r5, r4
- mul_sat r2.xyz, -r2, c2
- mul r2.xyz, r2, c1
- mul r2.x, r4.w, r2.x
- mul r2.y, r3.w, r2.y
- mul r2.z, r2.w, r2.z
- dp3_sat r0.w, r2, c4.y
- mad r1.xyz, r0, -c0, r1
- mul r1.xyz, r1, c3.w
- mad r0.xyz, r0, c0, r1
- mov oC0, r0
-
- // approximately 25 instruction slots used (5 texture, 20 arithmetic)
-