//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   float3 LightPosAspect;
//   float Shadow_Len;
//   sampler2D Texture0;
//   sampler2D Texture1;
//   float4 XYtx1;
//   float4 XYtx2;
//   float4 fvLightPosition;
//
//
// Registers:
//
//   Name            Reg   Size
//   --------------- ----- ----
//   Shadow_Len      c9       1
//   LightPosAspect  c10      1
//   fvLightPosition c12      1
//   XYtx1           c15      1
//   XYtx2           c16      1
//   Texture0        s0       1
//   Texture1        s1       1
//

    ps_2_0
    def c0, 2, -1, 5, 0.100000001
    def c1, 3, 4, 0.125, 0
    dcl t0.xy
    dcl_2d s0
    dcl_2d s1
    mad r0.xy, t0, c0.x, c0.y
    rcp r1.x, c10.x
    rcp r1.y, c10.y
    mad r0.xy, c12, -r1, -r0
    mul r0.xy, r0, c15.x
    add r1.xy, r0, r0
    mad r1.xy, r1, c10.z, t0
    mad r2.xy, r0, c10.z, t0
    mul r0.xy, r0, c10.z
    mad r3.xy, r0, c1.x, t0
    mad r0.xy, r0, c1.y, t0
    mov r0.w, c9.x
    mad r4.xy, c15, r0.w, t0
    mad r5.x, c15.z, r0.w, t0.x
    mad r5.y, c15.w, r0.w, t0.y
    mad r6.xy, c16, r0.w, t0
    mad r7.x, c16.z, r0.w, t0.x
    mad r7.y, c16.w, r0.w, t0.y
    texld r1, r1, s0
    texld r2, r2, s0
    texld r3, r3, s0
    texld r0, r0, s0
    texld r8, t0, s1
    texld r4, r4, s0
    texld r9, t0, s0
    texld r5, r5, s0
    texld r6, r6, s0
    texld r7, r7, s0
    add r1.w, r1.w, r2.w
    add r1.w, r3.w, r1.w
    add r0.w, r0.w, r1.w
    mad r0.w, r8.w, c1.y, r0.w
    mul r0.yzw, r0.w, c1.z
    add r1.w, r4.w, r9.w
    add r1.w, r5.w, r1.w
    add r1.w, r6.w, r1.w
    add r1.w, r7.w, r1.w
    mad r1.w, r8.w, c0.z, r1.w
    mul r0.x, r1.w, c0.w
    mov oC0, r0

// approximately 40 instruction slots used (10 texture, 30 arithmetic)
