//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   sampler2D s_sceneDepth;
//   sampler2D s_shadowProjectionMask;
//   row_major float4x4 screenToShadowBuffer;
//   float4 shadowMask;
//
//
// Registers:
//
//   Name                   Reg   Size
//   ---------------------- ----- ----
//   screenToShadowBuffer   c0       4
//   shadowMask             c4       1
//   s_sceneDepth           s0       1
//   s_shadowProjectionMask s1       1
//
//
// Default values:
//
//   screenToShadowBuffer
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   shadowMask
//     c4   = { 0, 0, 0, 0 };
//

    ps_3_0
  def c200, 0, 0, 0.0625, 0
    def c5, 1, 0, 10, 0
    dcl_texcoord v0.xyw
    dcl_texcoord1 v1
    dcl_2d s0
    dcl_2d s1
  dcl_2d s13
    rcp r0.x, v0.w
    mul r0.xy, r0.x, v0
    texldp r1, v1, s0
    mul r0.xy, r0, r1.w
  texldl r13, c200.z, s13	
  add r13.y, r1.w, -r13.y
  mul r13.x, r13.x, r13.y
  add r0.x, r0.x, -r13.x
    mad r0.zw, r1.w, c5.xyxy, c5.xyyx
    dp4 r1.y, c1, r0
    dp4 r1.x, c0, r0
    dp4 r0.x, c3, r0
    rcp r0.y, r0.x
    mul r0.zw, r1.xyxy, r0.y
    mad r0.y, r1.x, r0.y, -r0.w
    cmp r1.xy, r0.y, r0.wzzw, r0.zwzw
    texld r2, r0.zwzw, s1
    add r0.y, -r1.y, c5.x
    cmp r0.x, r0.y, r0.x, c5.y
    cmp r0.x, r1.x, r0.x, c5.y
    add r0.x, -r0.x, c5.z
    add_pp r0.y, -r2.x, c5.x
    cmp_pp r0.x, r0.x, c5.x, r0.y
    mul_pp oC0, r0.x, c4

// approximately 20 instruction slots used (2 texture, 18 arithmetic)
 