//
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   struct
//   {
//       float4 posDirRadius;
//       float4 color;
//       float4 params1;
//       float4 params2;
//
//   } g_Light;
//   
//   sampler2D g_RainTex;
//   
//   struct
//   {
//       float4 shadowFactors;
//       float4 lightDirPos;
//       float4 params;
//
//   } g_ShadowCommon;
//   
//   sampler2D g_ShadowMapTex;
//   
//   struct
//   {
//       row_major float4x4 eye2shadowMapUVMtx;
//       float4 params;
//       float4 light2UVScaleOffset;
//       float4 softShadowParams;
//       float4 softShadowParams1;
//
//   } g_Spot;
//   
//   row_major float4x4 g_SpotViewProj;
//   float4 ps_rain_drop_color;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   ps_rain_drop_color c124     1
//   g_ShadowCommon     c150     1
//   g_Spot             c153     6
//   g_Light            c180     4
//   g_SpotViewProj     c184     4
//   g_ShadowMapTex     s4       1
//   g_RainTex          s13      1
//

    ps_3_0
    def c0, 1, 0, 0.125, 0.99000001
    def c1, 20, 0, 0, 0

def c220, 0, 0, 0.0625, 0
dcl_2d s14
dcl_texcoord8 v8

    dcl_texcoord v0.zw
    dcl_texcoord1 v1.zw
    dcl_texcoord2 v2
    dcl_2d s4
    dcl_2d s13
    rcp r0.x, v1.z
    mul r0.xy, r0.x, v0.zwzw
    mul r0.zw, c0.xyxy, v1.w

    mad r0.xy, r0, v1.z, r0.zwzw

texldl r24, c220.z, s14
add r24.y,  v1.z, -r24.y
mul r24.x, r24.x, r24.y
mul r24.x, r24.x, v8.x
add  r0.x,  r0.x, -r24.x


    mul r1, r0.y, c185
    mad r1, r0.x, c184, r1
    mad r1, v1.z, c186, r1
    add r1, r1, c187
    rcp r0.w, r1.w
    mad r2.x, r1.z, r0.w, -c0.x
    mul r1.xyz, r1, r0.w
    add r0.w, r1.w, -c181.w
    rcp r0.w, r0.w
    mul r0.w, r0.w, c182.z
    mad r0.w, c180.w, r0.w, -c180.w
    min r1.w, r0.w, c1.x
    max r0.w, r1.w, c0.y
    cmp_pp r1.w, r2.x, c0.y, c0.x
    add r2.x, -c183.x, v1.z
    mul_sat r2.x, r2.x, c183.y
    add_pp r2.x, -r2.x, c0.x
    dp2add_pp r2.y, r1, -r1, c0.x
    mul r2.x, r2.x, r2.y
    mul r1.w, r1.w, r2.x
    cmp_pp r2.x, -r1.z, c0.y, c0.x
    mul r1.w, r1.w, r2.x
    mul_pp r2.xzw, r1.w, c181.xyyz
    cmp_pp r2.xyz, r2.y, r2.xzww, c0.y
    mul_pp r2.xyz, r0.w, r2
    mul_pp r2.xyz, r2, r2
    mad r1.xy, r1, c158, c158.zwzw
    add r0.w, r1.y, -c157.w
    add r0.w, -r0_abs.w, c0.z
    cmp r0.w, r0.w, c0.x, c0.y
    mul r1.xyz, r1, r0.w
    mul r0.w, r1.z, c150.w
    mad r1.xyw, r1.xyzx, c0.xxzy, c0.yyzx
    min r1.z, r0.w, c0.w
    texldp r1, r1, s4
    add_pp r0.w, -r1.x, c0.x
    add r1.x, -c150.y, v1.z
    mul_sat r1.x, r1.x, c150.z
    add_pp r1.x, -r1.x, c0.x
    mad_sat_pp r0.w, r0.w, -r1.x, c0.x
    mul_pp r1.xyz, r2, r0.w
    mov r0.z, v1.z
    add r0.xyz, -r0, c180
    nrm_pp r2.xyz, r0
    dp3_pp r0.x, r2, r2
    mul_pp r0.xyz, r1, r0.x
    mul_pp r0.xyz, r0, c124
    mov_sat r0.w, v2.z
    add r0.w, r0.w, v2.w
    texld r1, v2, s13
    mul r0.w, r0.w, r1.w
    mul_pp oC0.xyz, r0, r0.w
    mov_pp oC0.w, c0.x

// approximately 60 instruction slots used (2 texture, 58 arithmetic)
 
