//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 AmbientColorAndSkyFactor;
//   float4 DNEResolution;
//   float4 DiffuseOverrideParameter;
//   float4 LightMapScale[2];
//   sampler2D LightMapTextures[2];
//   float4 MinZ_MaxZRatio;
//   sampler2D PixelTexture2D_0;
//   float4 ScreenPositionScaleBias;
//   float4 UniformPixelScalars_0;
//   float4 UniformPixelVector_0;
//   float4 UniformPixelVector_1;
//   float3 UpperSkyColor;
//
//
// Registers:
//
//   Name                     Reg   Size
//   ------------------------ ----- ----
//   DNEResolution            c0       1
//   ScreenPositionScaleBias  c1       1
//   MinZ_MaxZRatio           c2       1
//   DiffuseOverrideParameter c4       1
//   LightMapScale            c7       2
//   UniformPixelVector_0     c9       1
//   UniformPixelVector_1     c10      1
//   UniformPixelScalars_0    c11      1
//   UpperSkyColor            c12      1
//   AmbientColorAndSkyFactor c13      1
//   LightMapTextures         s0       2
//   PixelTexture2D_0         s2       1
//

    ps_3_0
    def c3, 1, -9.99999997e-007, 0.899999976, 0.100000001
    def c5, 0.333333343, 0, 0, 0
	def c200, 0, 0.5, 0.0625, 0
    dcl_texcoord6 v0.xyz
    dcl_texcoord5 v1.w
    dcl_texcoord v2.xy
    dcl vPos.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
	dcl_2d s14
    dp3_pp r0.x, v0, v0
    rsq_pp r0.x, r0.x
    mul_pp r0.y, r0.x, v0.z
    mad r0.x, v0.z, -r0.x, c3.x
    cmp r0.x, r0.y, r0_abs.x, c3.x
    mul r0.y, r0.x, r0.x
    mul r0.y, r0.y, r0.x
    add r0.x, r0.x, c3.y
    mad r0.y, r0.y, c3.z, c3.w
    cmp r0.x, r0.x, r0.y, c3.w
    mad r0.yz, vPos.xxyw, c0.xxyw, c0.xzww
    mul r0.yz, r0, v1.w
	
	texldl r11, c200.z, s14
    add r11.y, v1.w, -r11.y
    mul r11.x, r11.x, r11.y
    add r0.y, r0.y, -r11.x
	
    rcp r0.w, v1.w
    mul r0.yz, r0.w, r0
    mad oC0.w, c2.x, r0.w, c2.y
    mad r0.yz, r0, c1.xxyw, c1.xwzw
    texld r1, r0.yzzw, s2
    mul r0.yzw, r1.xxyz, c11.x
    mad_pp r0.xyz, r0.x, r0.yzww, c9
    texld r1, v2, s1
    mul_pp r1.xyz, r1, c8
    dp3_pp r0.w, r1, c5.x
    texld r1, v2, s0
    mul_pp r1.xyz, r1, c7
    mul_pp r1.xyz, r0.w, r1
    mov r2.x, c3.x
    add r2.xyz, r2.x, -c9
    mul_pp r2.xyz, r2, c10
    mad_pp r2.xyz, r2, c4.w, c4
    mad_pp r0.xyz, r2, r1, r0
    mul r1.xyz, r2, c12
    mad_pp r0.xyz, r1, c13.w, r0
    mad_pp oC0.xyz, r2, c13, r0

// approximately 33 instruction slots used (3 texture, 30 arithmetic)
 