//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   sampler2D baseMap;
//   sampler2D cracks;
//   float fAmbientPower;
//   float2 fCrackSlice;
//   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
//   fCrackSlice    c15      1
//   baseMap        s0       1
//   cracks         s1       1
//

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

// approximately 58 instruction slots used (3 texture, 55 arithmetic)
