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

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

// approximately 51 instruction slots used (4 texture, 47 arithmetic)
