//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float3 CameraPos;
//   sampler2D Depth_RT;
//   float RenderMult;
//   float4 VFogColor;
//   float VFogDensity;
//   float VFogDistanceInv;
//   float VFogHorizon;
//   float4 VFogHorizonColor;
//   float VFogOffset;
//   float VFogRangeInv;
//   row_major float4x4 matViewProjectionInv;
//   sampler2D s0;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   matViewProjectionInv c0       4
//   RenderMult           c4       1
//   VFogDistanceInv      c5       1
//   VFogRangeInv         c6       1
//   VFogHorizon          c7       1
//   VFogOffset           c8       1
//   VFogColor            c9       1
//   VFogHorizonColor     c10      1
//   VFogDensity          c11      1
//   CameraPos            c12      1
//   s0                   s0       1
//   Depth_RT             s2       1
//

    ps_3_0
    def c13, -1.44269502, 1, 1.44269502, 0
def c220, 0, 0, 0.0625, 0
dcl_2d s13

    dcl_texcoord v0.xy
    dcl_texcoord1 v1.xy
    dcl_2d s0
    dcl_2d s2
    mov r0.y, c12.y
    add r0.x, r0.y, -c7.x
    mul r0.x, r0.x, -c6.x
    mul r0.x, r0.x, c13.z
    exp r0.x, r0.x
    mul r0.x, r0.x, c5.x
    mul r1, c1, v1.y
    mad r1, v1.x, c0, r1
    texld r2, v0, s2
    mad r1, r2.x, c2, r1
    add r1, r1, c3
    rcp r0.y, r1.w
    mad r0.yzw, r1.xxyz, r0.y, -c12.xxyz
    dp3 r0.y, r0.yzww, r0.yzww
    mul r0.z, r0.z, c6.x
    rsq r0.y, r0.y
    rcp r0.y, r0.y
    mul r0.x, r0.x, r0.y
    mul r0.y, r0.z, c13.x
    exp r0.y, r0.y
    add r0.y, -r0.y, c13.y
    rcp r0.w, r0.z
    mul r0.y, r0.w, r0.y
    cmp r0.y, -r0.z, c13.y, r0.y
    mad r0.x, r0.y, r0.x, -c8.x
    exp_sat r0.x, -r0.x
    add r0.x, -r0.x, c13.y
    mul_sat r0.y, r0.x, c11.x
    mov r1, c9
    add r1, -r1, c10
    mad r1, r0.x, r1, c9
    texld_pp r2, v0, s0
    mad r1, r1, c4.x, -r2
    mad_pp oC0, r0.y, r1, r2

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