//CGVER3.4
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
//
//   fxc /T ps_2_0 /DCGC=0 /Fc $$out.cg $$in.cg
//
//
// Parameters:
//
//   float4 $Ambient;
//   float4 $Diffuse;
//   float4 $Specular;
//   sampler2D $attenMap;
//   sampler2D $baseMap;
//   sampler2D $bumpMap;
//   samplerCUBE $normCubeMapHA;
//   samplerCUBE $normCubeMapLV;
//
//
// Registers:
//
//   Name           Reg   Size
//   -------------- ----- ----
//   $Ambient       c0       1
//   $Diffuse       c1       1
//   $Specular      c2       1
//   $baseMap       s0       1
//   $bumpMap       s1       1
//   $normCubeMapLV s2       1
//   $normCubeMapHA s3       1
//   $attenMap      s4       1
//

    ps_2_0
    def c3, -0.5, 1, -0.75, 4
    def c4, 2, 0, 0, 0
    dcl t0.xy
    dcl t1.xy
    dcl t2.xyz
    dcl t3.xyz
    dcl t4.xy
    dcl v0.xyz
    dcl_2d s0
    dcl_2d s1
    dcl_cube s2
    dcl_cube s3
    dcl_2d s4
    texld r1, t4, s4
    texld r4, t2, s2
    texld r3, t1, s1
    texld r0, t0, s0
    texld r2, t3, s3
    add r4.xyz, r4, c3.x
    add r4.xyz, r4, r4
    add r3.xyz, r3, c3.x
    add r3.xyz, r3, r3
    add r1.w, v0.z, c3.x
    dp3_sat r4.x, r4, r3
    add r1.w, r1.w, r1.w
    add r2.xyz, r2, c3.x
    mad r1.w, r1.w, -r1.w, -r1.z
    add r1.xyz, r2, r2
    add_sat r1.w, r1.w, c3.y
    dp3_sat r2.x, r1, r3
    mul r1.xyz, r0, r4.x
    add r2.w, r2.x, c3.z
    mul r1.xyz, r1.w, r1
    mul_sat r2.w, r2.w, c3.w
    mul r1.xyz, r1, c1
    mul r2.w, r2.w, r2.w
    add r1.xyz, r1, r1
    mul r0.w, r0.w, r2.w
    mad r1.xyz, c0, r0, r1
    mul r0.w, r1.w, r0.w
    mul r0.xyz, r0.w, c2
    mad r0.xyz, c4.x, r0, r1
    mov r0.w, c0.w
    mov oC0, r0

// approximately 31 instruction slots used (5 texture, 26 arithmetic)
