//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D AmbientOcclusionTexture;
//   float3 CameraPosition;
//   float3 HaveSeenFOWTint;
//   float2 InvEncodePower;
//   float4 MinZ_MaxZRatio;
//   float4 OcclusionColor;
//   sampler2D SceneColorTexture;
//   float4 SharedFogParameter0;
//   float4 SharedFogParameter1;
//   float4 SharedFogParameter2;
//
//
// Registers:
//
//   Name                    Reg   Size
//   ----------------------- ----- ----
//   SharedFogParameter0     c0       1
//   MinZ_MaxZRatio          c2       1
//   SharedFogParameter1     c9       1
//   SharedFogParameter2     c10      1
//   OcclusionColor          c11      1
//   HaveSeenFOWTint         c12      1
//   InvEncodePower          c13      1
//   CameraPosition          c14      1
//   SceneColorTexture       s0       1
//   AmbientOcclusionTexture s1       1
//

    ps_3_0
    def c1, 0.00999999978, 0.300000012, 0.589999974, 0.109999999
    def c3, 3, -1, 0, 0
    def c4, 1, 0, 0.100000001, -10
    dcl_texcoord v0.xy
    dcl_texcoord1 v1.z
    dcl_2d s0
    dcl_2d s1
    mul r0, c4.xxyy, v0.xyxx
    texldl r0, r0, s0
    mov r0.x, c4.x
    add r0.x, r0.x, -c2.y
    add r0.x, -r0.x, r0.w
    rcp r0.x, r0.x
    add r0.y, c4.z, v1.z
    rcp r0.z, v1.z
    cmp r0.y, r0.y, c4.w, r0.z
    mov_pp r1.y, c13.y
    add_pp r0.z, r1.y, -c14.z
    mul r0.y, r0.y, r0.z
    mad r0.x, -c2.x, r0.x, -r0.y
    texld r1, v0, s1
    add r0.z, -r1.z, c4.x
    mad r0.x, r0.z, r0.x, r0.y
    mul r0.y, r0.x, v1.z
    add r0.x, r0.x, -c0.w
    add r0.z, -r0_abs.y, c1.x
    cmp r0.y, r0.z, c1.x, r0.y
    mul r0.z, r0.y, -c0.y
    mul r0.y, r0.y, c0.y
    rcp r0.y, r0.y
    exp r0.z, r0.z
    add r0.z, -r0.z, c4.x
    mul r0.y, r0.y, r0.z
    mul r0.z, r0.x, c0.x
    cmp r0.x, r0.x, r0.z, c4.y
    mul r0.x, r0.y, r0.x
    exp_sat r0.x, -r0.x
    max r1.z, r0.x, c9.w
    texld_pp r0, v0, s0
    dp3_sat r0.x, r0, c1.yzww
    mul r0.xyz, r0.x, c12
    mad_sat r0.w, r1.x, c3.x, c3.y
    cmp r0.w, r1.y, r0.w, c4.x
    add r1.y, -r0.w, c4.x
    mul r0.xyz, r0, r1.y
    lrp r2.xyz, r1.x, r0, c11
    mul r0.xyz, r1.z, r2
    mad r1.y, r0.w, -r1.x, c4.x
    mul r0, r1.yyyx, r0
    mul_pp oC0.w, r1.z, r0.w
    add r0.w, -r1.z, c4.x
    mad_pp oC0.xyz, c10, r0.w, r0

// approximately 46 instruction slots used (4 texture, 42 arithmetic)
 