//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 AmbientColorAndSkyFactor;
//   float4 DiffuseOverrideParameter;
//   float3 LowerSkyColor;
//   float4 MinZ_MaxZRatio;
//   sampler2D PixelTexture2D_0;
//   sampler2D PixelTexture2D_1;
//   float4 UniformPixelVector_0;
//   float3 UpperSkyColor;
//
//
// Registers:
//
//   Name                     Reg   Size
//   ------------------------ ----- ----
//   UniformPixelVector_0     c0       1
//   MinZ_MaxZRatio           c2       1
//   DiffuseOverrideParameter c4       1
//   UpperSkyColor            c7       1
//   LowerSkyColor            c8       1
//   AmbientColorAndSkyFactor c9       1
//   PixelTexture2D_0         s0       1
//   PixelTexture2D_1         s1       1
//

    ps_3_0
    def c1, 2, -1, 1, 0
    def c3, 0.5, -0.5, 0, 0
    dcl_texcoord7 v0.xyz
    dcl_texcoord5 v1.w
    dcl_texcoord v2.xy
    dcl_2d s0
    dcl_2d s1
    texld r0, v2, s0
    mad_pp r0.xyz, r0, c1.x, c1.y
    nrm_pp r1.xyz, r0
    nrm r0.xyz, v0
    dp3 r0.x, r0, r1
    mad r0.xy, r0.x, c3, c3.x
    mul r0.xy, r0, r0
    mov r0.z, c1.z
    add r1.xyz, r0.z, -c0
    texld r2, v2, s1
    mul_pp r1.xyz, r1, r2
    mad_pp r1.xyz, r1, c4.w, c4
    mul r2.xyz, r0.y, r1
    mul r0.xyw, r0.x, r1.xyzz
    mul r2.xyz, r2, c8
    mad r0.xyw, r0, c7.xyzz, r2.xyzz
    mov_pp r1.w, c9.w
    mad_pp r0.xyw, r0, r1.w, c0.xyzz
    mad_pp oC0.xyz, r1, c9, r0.xyww
    add r0.x, r0.z, -c2.y
    rcp r0.y, v1.w
    mad oC0.w, -c2.x, r0.y, r0.x

// approximately 26 instruction slots used (2 texture, 24 arithmetic)
 