//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   sampler2D baseMap;
//   float fAmbientPower;
//   float fSpecularPower;
//   float4 fvAmbient;
//   float4 fvDiffuse;
//   float3 fvEyePosition;
//   float4 lightDiffuse;
//   float4 secLiDiffuse;
//   float4 spPos;
//
//
// Registers:
//
//   Name           Reg   Size
//   -------------- ----- ----
//   secLiDiffuse   c0       1
//   lightDiffuse   c1       1
//   spPos          c2       1
//   fvEyePosition  c3       1
//   fAmbientPower  c4       1
//   fvAmbient      c5       1
//   fvDiffuse      c7       1
//   fSpecularPower c8       1
//   baseMap        s0       1
//

    ps_2_0
    def c6, 127, 2, -1, 0
    def c9, 0.5, 0, 1, 0
    dcl t0.xy
    dcl t1.xyz
    dcl t2.xyz
    dcl t3
    dcl_2d s0
    add r0.xy, t0, c9
    texld r0, r0, s0
    texld r1, t0, s0
    mad r0.xyz, r0, c6.y, c6.z
    nrm r2.xyz, r0
    dp3 r2.w, r2, t2
    max r3.w, r2.w, c6.w
    pow r2.w, r3.w, c4.x
    mov r0.xy, t1
    mad r0.z, r1.w, -c6.x, t1.z
    nrm r3.xyz, r0
    dp3 r3.w, r2, r3
    mul r0.xyz, r3.w, c1
    mul r4.xyz, r2, r3.w
    mul r1.xyz, r1, c7
    mul r0.xyz, r0, r1
    mul r5.xyz, r1, c5
    mad r0.xyz, r5, r2.w, r0
    mov r5.xy, t3
    mad r5.z, r1.w, -c6.x, t3.z
    nrm r6.xyz, r5
    dp3 r2.w, r2, r6
    max r3.w, r2.w, c6.w
    mul r2.xyz, r3.w, c0
    mul r1.xyz, r1, r2
    mad r0.xyz, r1, t3.w, r0
    mad r1.xyz, r4, c6.y, -r3
    nrm r2.xyz, r1
    dp3 r2.w, r2, c3
    max r3.w, r2.w, c6.w
    pow r2.w, r3.w, c8.x
    mad_sat r0.xyz, r0.w, r2.w, r0
    add r2.w, r1.w, c2.z
    mul r1.w, r1.w, r1.w
    min r3.w, r2.w, c9.z
    cmp r0.w, -r1.w, c6.w, r3.w
    mov oC0, r0
    mov oDepth, r0.w

// approximately 50 instruction slots used (2 texture, 48 arithmetic)
