//
// 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;
//   sampler2D PixelTexture2D_1;
//   float4 ScreenPositionScaleBias;
//   float4 UniformPixelScalars_0;
//   float4 UniformPixelVector_0;
//   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
//   UniformPixelScalars_0    c10      1
//   UpperSkyColor            c11      1
//   AmbientColorAndSkyFactor c12      1
//   LightMapTextures         s0       2
//   PixelTexture2D_0         s2       1
//   PixelTexture2D_1         s3       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_texcoord v0.xy
    dcl_texcoord1 v1.xy
    dcl_texcoord6 v2.xyz
    dcl_texcoord5 v3.w
    dcl vPos.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
	dcl_2d s14
    dp3_pp r0.x, v2, v2
    rsq_pp r0.x, r0.x
    mul_pp r0.y, r0.x, v2.z
    mad r0.x, v2.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, v3.w
	
	texldl r11, c200.z, s14
    add r11.y, v3.w, -r11.y
    mul r11.x, r11.x, r11.y
    add r0.y, r0.y, -r11.x
	
    rcp r0.w, v3.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, c10.x
    mad_pp r0.xyz, r0.x, r0.yzww, c9
    texld r1, v0, s1
    mul_pp r1.xyz, r1, c8
    dp3_pp r0.w, r1, c5.x
    texld r1, v0, 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
    texld r3, v1, s3
    mul_pp r2.xyz, r2, r3
    mad_pp r2.xyz, r2, c4.w, c4
    mad_pp r0.xyz, r2, r1, r0
    mul r1.xyz, r2, c11
    mad_pp r0.xyz, r1, c12.w, r0
    mad_pp oC0.xyz, r2, c12, r0

// approximately 34 instruction slots used (4 texture, 30 arithmetic)
 