//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 $Diffuse;
//   float4 $Specular;
//   sampler2D $attenMap;
//   sampler2D $baseMap;
//   sampler2D $bumpMap;
//   samplerCUBE $normCubeMapHA;
//   samplerCUBE $normCubeMapLV;
//
//
// Registers:
//
//   Name           Reg   Size
//   -------------- ----- ----
//   $Diffuse       c0       1
//   $Specular      c1       1
//   $baseMap       s0       1
//   $bumpMap       s1       1
//   $normCubeMapLV s2       1
//   $normCubeMapHA s3       1
//   $attenMap      s4       1
//

    ps_2_0
    def c2, -0.5, 1, -0.75, 4
    def c3, 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 r4, t3, s3
    texld r3, t1, s1
    texld r2, t4, s4
    texld r0, t0, s0
    texld r1, t2, s2
    add r4.xyz, r4, c2.x
    add r4.xyz, r4, r4
    add r3.xyz, r3, c2.x
    add r3.xyz, r3, r3
    dp3_sat r2.x, r4, r3
    add r1.w, r2.x, c2.z
    mul_sat r1.w, r1.w, c2.w
    mul r2.w, r1.w, r1.w
    add r1.w, v0.z, c2.x
    add r1.w, r1.w, r1.w
    mad r1.w, r1.w, -r1.w, -r2.z
    add_sat r1.w, r1.w, c2.y
    mul r2.w, r2.w, r1.w
    mul r0.w, r0.w, r2.w
    mul r2.xyz, r0.w, c1
    add r2.xyz, r2, r2
    add r1.xyz, r1, c2.x
    add r1.xyz, r1, r1
    dp3_sat r1.x, r1, r3
    mul r0.xyz, r0, r1.x
    mul r0.xyz, r1.w, r0
    mul r0.xyz, r0, c0
    mad r0.xyz, c3.x, r0, r2
    mov r0.w, c0.w
    mov oC0, r0

// approximately 30 instruction slots used (5 texture, 25 arithmetic)
