//
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.05.132.0000
//
//   fxc /Tps_2_0 /Fc2.txt /EPointLightingPS deffered.psh
//
//
// Parameters:
//
//   float3 Ambient;
//   float4x4 InvView;
//   float4x4 InvViewProj;
//   float3 LightColor;
//   float3 LightPosition;
//   float LightRange;
//   sampler2D s0;
//   sampler2D s1;
//   sampler2D s2;
//   sampler2D s3;
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   InvViewProj   c0       4
//   InvView       c4       4
//   LightPosition c8       1
//   LightColor    c9       1
//   LightRange    c10      1
//   Ambient       c11      1
//   s0            s0       1
//   s1            s1       1
//   s2            s2       1
//   s3            s3       1
//

    ps_2_0
    def c12, 2, -1, 1, 0
    dcl t0.xy
    dcl t1.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
    texld_pp r2, t0, s1
    texld_pp r3, t0, s2
    texld_pp r0, t0, s0
    texld_pp r1, t0, s3
    mad_pp r4.xyz, c12.x, r2, c12.y
    dp3 r2.w, r4, c7
    dp3 r2.x, r4, c4
    dp3 r2.y, r4, c5
    dp3 r2.z, r4, c6
    dp4 r0.w, r2, r2
    mov_pp r3.z, r3.x
    mov r3.xy, t1
    mov r3.w, c12.z
    dp4 r1.w, r3, c3
    dp4 r4.x, r3, c0
    dp4 r4.y, r3, c1
    rcp r1.w, r1.w
    dp4 r4.z, r3, c2
    mad r3.xyz, r4, -r1.w, c8
    rsq r0.w, r0.w
    dp3 r4.x, r3, r3
    mul_pp r2.xyz, r2, r0.w
    rsq r0.w, r4.x
    mul r3.xyz, r3, r0.w
    rcp r1.w, r0.w
    dp3_pp r2.x, r2, r3
    cmp_pp r0.w, -r2.x, c12.w, c12.z
    mul_pp r0.w, r2.x, r0.w
    rcp r2.w, c10.x
    mad r1.w, r1.w, -r2.w, c12.z
    mul r2.xyz, r0.w, c9
    max_pp r0.w, r1.w, c12.w
    mad r2.xyz, r2, r0.w, c11
    mul_pp r0.xyz, r0, r1
    mul_pp r0.xyz, r2, r0
    mov r0.w, c12.z
    mov oC0, r0

// approximately 37 instruction slots used (4 texture, 33 arithmetic)
