//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 MinZ_MaxZRatio;
//   sampler2D PixelTexture2D_0;
//   sampler2D PixelTexture2D_1;
//   sampler2D PixelTexture2D_2;
//   sampler2D PixelTexture2D_3;
//   sampler2D PixelTexture2D_4;
//   samplerCUBE PixelTextureCube_0;
//   sampler2D SceneColorTexture;
//   float4 ScreenPositionScaleBias;
//   float4 UniformPixelVector_0;
//   float4 UniformPixelVector_1;
//   float4 UniformPixelVector_2;
//
//
// Registers:
//
//   Name                    Reg   Size
//   ----------------------- ----- ----
//   UniformPixelVector_0    c0       1
//   ScreenPositionScaleBias c1       1
//   MinZ_MaxZRatio          c2       1
//   UniformPixelVector_1    c8       1
//   UniformPixelVector_2    c9       1
//   SceneColorTexture       s0       1
//   PixelTexture2D_0        s1       1
//   PixelTexture2D_1        s2       1
//   PixelTexture2D_2        s3       1
//   PixelTexture2D_3        s4       1
//   PixelTexture2D_4        s5       1
//   PixelTextureCube_0      s6       1
//

    ps_3_0
    def c3, 2, -1, 9.99999997e-007, 0.200000003
    def c4, 0.25, 2.5, 0.800000012, 0
    def c5, 0.00249999994, 0.00100000005, 0, 0
    dcl_texcoord4 v0
    dcl_texcoord6 v1.xyz
    dcl_texcoord5 v2.xyw
    dcl_texcoord v3.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
    dcl_2d s4
    dcl_2d s5
    dcl_cube s6
    add r0.xy, c9, v3
    texld r1, r0, s2
    texld r0, r0, s3
    add r2.xy, c8, v3
    texld r3, r2, s1
    mad r1.xyz, r1, c3.x, r3
    add_pp r1.xyz, r1, c3.y
    nrm_pp r3.xyz, r1
    nrm r1.xyz, v1
    dp3 r0.w, r3, r1
    mul r3.xyz, r0.w, r3
    mad r1.xyz, r3, c3.x, -r1
    texld r1, r1, s6
    texld r3, r2, s4
    texld r2, r2, s5
    mad r0.xyz, r0, r3, r1
    max r1.xyz, r0_abs, c3.z
    pow r0.x, r1.x, c4.y
    mul r0.yzw, r1.xxyz, r1.xxyz
    min r1.x, r0.x, c4.z
    rcp r0.x, v2.w
    mul r1.yz, r0.x, v2.xxyw
    mad r3.xy, r1.yzzw, c1, c1.wzzw
    mov r3.zw, c4.w
    texldl r3, r3, s0
    mov r1.y, c3.y
    add r0.x, -r1.y, -c2.y
    add r0.x, -r0.x, r3.w
    rcp r0.x, r0.x
    mad r0.x, -c2.x, r0.x, -v2.w
    mul_sat r1.yz, r0.x, c5.xxyw
    add r0.x, -r1.y, -c3.y
    add r0.x, -r0.x, r1.x
    max r1.x, r0.x, c4.w
    add_pp r0.x, r1.z, r1.x
    min_pp oC0.w, r0.x, c4.z
    mul r1.xyz, r0.yzww, r0.yzww
    mul r1.xyz, r1, r1
    mul r0.xyz, r0.yzww, r1
    mad r0.xyz, r0, c3.w, r2
    mul_sat r0.xyz, r0, c4.x
    add_pp r0.xyz, r0, c0
    mad_pp oC0.xyz, r0, v0.w, v0

// approximately 50 instruction slots used (8 texture, 42 arithmetic)
 