//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D DepthMapSampler;
//   sampler2D DiffuseMapSampler;
//   row_major float4x4 matViewProjectionInv;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   matViewProjectionInv c0       4
//   DiffuseMapSampler    s0       1
//   DepthMapSampler      s10      1
//

    ps_3_0
    def c4, 0.5, 0.500100017, 0.499900013, 1
    def c5, 0.00999999978, 0, 0, 0
def c220, 0, 0, 0.0625, 0
dcl_2d s13

    dcl_color v0
    dcl_texcoord v1.xy
    dcl_texcoord1 v2.xyw
    dcl_texcoord2 v3.xyz
    dcl_2d s0
    dcl_2d s10
    rcp r0.x, v2.w
    mul r0.xy, r0.x, v2
    mul r1, r0.y, c1
    mad r1, r0.x, c0, r1
    mad r0.xy, r0, c4.x, c4.yzzw
    add r0.z, -r0.y, c4.w
    texld r0, r0.xzzw, s10
    mad r0, r0.x, c2, r1
    add r0, r0, c3


mov r11,r0
rcp r11.w, r11.w
mul r11, r11, r11.w
mul r10, r11.y, c151
mad r10, r11.x, c150, r10
mad r10, r11.z, c152, r10
add r10, r10, c153
texldl r20, c220.z, s13
add r20.y, r10.w, -r20.y
mul r20.x, r20.x, r20.y
add r10.x, r10.x, -r20.x
rcp r11.w, r10.w
mul r10, r10, r11.w
mul r11, r10.y, c155
mad r11, r10.x, c154, r11
mad r11, r10.z, c156, r11
add r11, r11, c157
rcp r10.w, r11.w
mul r11, r11, r10.w
mul r11, r11, r0.w
mov r0, r11
    rcp r0.w, r0.w

    mad r1.xyz, r0, r0.w, -v3
    mad r0.x, r0.y, -r0.w, v3.y
    mul_sat r0.x, r0.x, c5.x
    mul r0.x, r0.x, r0.x
    dp3 r0.y, r1, r1
    rsq r0.y, r0.y
    rcp r0.y, r0.y
    mul_sat r0.y, r0.y, c5.x
    mul r0.w, r0.x, r0.y
    texld r1, v1, s0
    mul r1, r1, v0
    mov r0.xyz, c4.w
    mul oC0, r0, r1

// approximately 23 instruction slots used (2 texture, 21 arithmetic)
 
