//
// Generated by Microsoft (R) D3DX9 Shader Compiler 4.09.00.1126
//
//   fxc /Tps_2_0 /EPS_Propagate /Fcout.txt rtgpu_plane_v5.fx
//
//
// Parameters:
//
//   sampler2D SamplerLeafData;
//   sampler2D SamplerPlaneData;
//   sampler2D SamplerPlnParams;
//   sampler2D StateData1;
//   sampler2D StateData2;
//   sampler2D StateData3;
//   float3 listenerPos;
//   float maxDistance;
//   float receiverRaySqRadius;
//   float receiversLeaf;
//
//
// Registers:
//
//   Name                Reg   Size
//   ------------------- ----- ----
//   maxDistance         c0       1
//   receiversLeaf       c1       1
//   receiverRaySqRadius c2       1
//   listenerPos         c3       1
//   SamplerPlaneData    s0       1
//   SamplerPlnParams    s1       1
//   SamplerLeafData     s2       1
//   StateData1          s3       1
//   StateData2          s4       1
//   StateData3          s5       1
//

    ps_2_0
    def c4, 0, 1, 9999, 0
    def c5, 0.000488281, 0.000244141, 6, 0
    dcl t0.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
    dcl_2d s4
    dcl_2d s5
    texld r7, t0, s3
    mad r1.xy, r7.x, c5.x, c5.y
    texld r0, t0, s5
    texld r6, r1, s2
    mad r1.xy, r0.w, c5.x, r6.x
    texkill r7
    texld r4, t0, s4
    texld r2, r1, s1
    texld r1, r1, s0
    add r3.xyz, -r4, c3
    dp3 r5.x, r3, r3
    add r1.w, -r5.x, c2.x
    cmp_pp r3.w, r1.w, c4.x, c4.y
    dp3 r3.x, r3, r0
    cmp_pp r2.w, r3.x, c4.x, c4.y
    mul_pp r2.w, r3.w, r2.w
    cmp r2.w, -r2.w, r3.x, c5.w
    mad r3.w, r3.x, -r3.x, r5.x
    add r3.w, -r3.w, c2.x
    cmp r2.w, r3.w, r2.w, c5.w
    rsq r9.w, r3.w
    mul r3.w, r9.w, r3.w
    add r5.w, r2.w, -r3.w
    add r3.w, r2.w, r3.w
    cmp r3.w, r1.w, r3.w, r5.w
    mul r1.w, r2.w, r2.w
    cmp r2.w, -r1.w, r2.w, r3.w
    add r1.w, r7.x, -c1.x
    mul r1.w, r1.w, r1.w
    cmp r3.w, -r1.w, r2.w, c5.w
    cmp r8.y, -r3.w, r4.w, r3.w
    mov r3.y, c5.w
    add r2.w, r7.w, r8.y
    cmp r8.x, -r3.w, r7.z, -r7.z
    add r1.w, -r2.w, c0.x
    cmp r8.z, -r3.w, r2.z, c4.y
    cmp r3.w, r1.w, r2.w, -r2.w
    mul r3.z, r8.x, r8.z
    rsq r9.w, r7.y
    mul r1.w, r9.w, r7.y
    mad r5.y, r1.w, c5.z, r7.y
    add r1.w, r7.y, c5.z
    mov r5.xzw, r7
    add r1.w, -r6.y, r1.w
    mov r3.x, r2.y
    cmp r3, r1.w, r3, r5
    mov oC0, r3
    mad r3.xyz, r0, r8.y, r4
    mov r3.w, c4.z
    cmp r3, r1.w, r3, r4
    mov oC1, r3
    dp3 r3.x, r0, r1
    add r3.w, r3.x, r3.x
    mul r2.w, r2.x, r2.x
    mad r1.xyz, r1, -r3.w, r0
    cmp r1.xyz, -r2.w, r0, r1
    cmp r0.xyz, r1.w, r1, r0
    mov oC2, r0

// approximately 58 instruction slots used (7 texture, 51 arithmetic)
