//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 FogInScattering[4];
//   float4 MinZ_MaxZRatio;
//   sampler2D SceneColorTexture;
//   float4 SharedFogParameter0;
//   float4 SharedFogParameter1;
//   float4 SharedFogParameter2;
//
//
// Registers:
//
//   Name                Reg   Size
//   ------------------- ----- ----
//   SharedFogParameter0 c0       1
//   MinZ_MaxZRatio      c2       1
//   SharedFogParameter1 c7       1
//   SharedFogParameter2 c8       1
//   FogInScattering     c9       1
//   SceneColorTexture   s0       1
//

    ps_3_0
    def c1, 1, 0, 0.00100000005, 1000
    dcl_texcoord v0
    dcl_texcoord1 v1.z
    dcl_2d s0
    mul r0, c1.xxyy, v0.xyxx
    texldl r0, r0, s0
    mov r0.xz, c1
    add r0.x, r0.x, -c2.y
    add r0.x, -r0.x, r0.w
    rcp r0.x, r0.x
    mul r0.y, r0.x, -c2.x
    mov r1.x, c2.x
    mad r0.x, -r1.x, r0.x, -c8.x
    if_lt r0.y, c8.x
      mov oC0, c1.yyyx
    else
      mul r0.y, r0.y, v1.z
      add r0.w, -r0_abs.y, c1.z
      rcp r0.y, r0.y
      cmp r0.y, r0.w, c1.w, r0.y
      mul_sat r0.yw, r0.y, v0.xzzw
      add r0.y, -r0.y, r0.w
      mul r0.w, r0_abs.y, r0.x
      mul r1.x, r0.w, c0.x
      mad r0.x, r0.x, r0_abs.y, -c7.x
      exp_pp r0.y, r1.x
      cmp_pp r0.x, r0.x, c1.y, r0.y
      add_pp r0.y, r0.x, -c1.x
      mul_pp oC0.xyz, r0.y, c9
      mad r1, c0.x, -r0.w, -r0.z
      texkill r1
      mov oC0.w, r0.x
    endif

// approximately 32 instruction slots used (2 texture, 30 arithmetic)
 