//
// Generated by Microsoft (R) D3DX9 Shader Compiler 
//
// Parameters:
//
//   float EnableReactiveEffects;
//   float FadeInDistance;
//   float4 fogColor;
//   float3 fogTransform;
//   float reactiveDepthOffset;
//   float3 reactiveNormal;
//   row_major float4x4 reactiveTransform;
//   sampler2D s_water_depth_mask;
//   row_major float3x4 screenDataToCamera;
//   float3 screenOrientation[2];
//   float4 screenTransform[2];
//   float water_row_sample;
//   row_major float4x4 worldViewProj;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   worldViewProj         c0       4
//   screenDataToCamera    c4       3
//   screenTransform       c7       2
//   screenOrientation     c9       2
//   fogColor              c11      1
//   fogTransform          c12      1
//   EnableReactiveEffects c13      1
//   FadeInDistance        c14      1
//   water_row_sample      c15      1
//   reactiveTransform     c16      1
//   reactiveNormal        c17      1
//   reactiveDepthOffset   c18      1
//   s_water_depth_mask    s0       1
//
//
// Default values:
//
//   worldViewProj
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   screenDataToCamera
//     c4   = { 0, 0, 0, 0 };
//     c5   = { 0, 0, 0, 0 };
//     c6   = { 0, 0, 0, 0 };
//
//   screenTransform
//     c7   = { 0, 0, 0, 0 };
//     c8   = { 0, 0, 0, 0 };
//
//   screenOrientation
//     c9   = { 0, 0, 0, 0 };
//     c10  = { 0, 0, 0, 0 };
//
//   fogColor
//     c11  = { 0, 0, 0, 0 };
//
//   fogTransform
//     c12  = { 0, 0, 0, 0 };
//
//   EnableReactiveEffects
//     c13  = { 0, 0, 0, 0 };
//
//   FadeInDistance
//     c14  = { 0, 0, 0, 0 };
//
//   water_row_sample
//     c15  = { 0, 0, 0, 0 };
//
//   reactiveTransform
//     c16  = { 0, 0, 0, 0 };
//
//   reactiveNormal
//     c17  = { 0, 0, 0, 0 };
//
//   reactiveDepthOffset
//     c18  = { 0, 0, 0, 0 };
//

    vs_3_0
  def c253, 0.5, 0, 0.0625, 1
    def c19, 2, -2, -1, 1
    def c20, 6.28318548, -3.14159274, 1.44269502, 0
    def c21, 0, 0.5, 1, 0.499999583
  dcl_2d s1
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord1 v2
    dcl_texcoord2 v3
    dcl_color v4
    dcl_2d s0
    dcl_texcoord6 o0
    dcl_texcoord7 o1
    dcl_color o2
  dcl_texcoord8 o10.x
    dcl_position o3
    mov r0.xz, c21
    if_lt r0.x, c13.x
      dp4 r0.y, c16, v3
      add r1.x, r0.y, c21.y
      slt r0.y, r1.x, c21.z
      slt r0.w, c21.x, r1.x
      mul r0.y, r0.y, r0.w
      mul r1.yzw, r0.xzxx, c15.x
      texldl r1, r1, s0
      add r0.x, -r1.x, c21.z
      add_sat r0.x, r0.x, -c18.x
      mul r0.xzw, r0.x, c17.xyyz
      mad r0.xyz, r0.y, r0.xzww, v0
    else
      mov r0.xyz, v0
    endif
    add r0.w, c21.z, v2.x
    mad r0.w, r0.w, c21.w, c21.y
    frc r0.w, r0.w
    mad r0.w, r0.w, c20.x, c20.y
    sincos r1.xy, r0.w
    mul r2.xyz, r1.y, c10
    mad r2.xyz, r1.x, c9, -r2
    mad r1.zw, v2, c19.xyxy, c19
    mul r1.zw, r1.xywz, v1.xyyx
    mad r0.xyz, r1.z, r2, r0
    mul r2.xyz, r1.x, c10
    mad r1.xyz, r1.y, c9, r2
    mad r0.xyz, r1.w, r1, r0
    mov r0.w, v0.w
    dp4 r1.w, c3, r0
    dp4 r1.x, c0, r0
    dp4 r1.y, c1, r0
    dp4 r1.z, c2, r0
    mov o3, r1
  dp4 o10.x, c7, r1
    dp4 r0.x, c7, r1
    dp4 r0.y, c8, r1
    mad r0.zw, r1.w, c21.xyzx, c21.xyxz
    mov r10.xyw, r0.xyzz
    dp4 r1.z, c6, r0
    dp4 r1.x, c4, r0
    dp4 r1.y, c5, r0
    dp3 r0.x, r1, r1
    rsq r0.x, r0.x
    rcp r0.x, r0.x
    mad r0.x, r0.x, c12.x, c12.y
    mul r0.x, r0.x, c20.z
    exp r0.x, r0.x
    min r0.x, r0.x, c21.z
    mad r0.x, c11.w, -r0.x, c11.w
    mul r10.z, r0.x, c12.z
    rcp r0.x, c14.x
    mul_sat r0.x, r1.w, r0.x
    mad r0.x, v4.w, r0.x, -v4.w
    abs r0.y, c14.x
    slt r0.y, -r0.y, r0.y
    mad o2.w, r0.y, r0.x, v4.w
    mov o1, c21.xxzz
    mov o2.xyz, v4
 texldl r11, c253.z, s1
 add r11.y, r10.w, -r11.y
 mul r11.x, r11.x, r11.y
 mul r11.x, r11.x, c253.x
 add r10.x, r10.x, r11.x
 mov o0, r10

// approximately 69 instruction slots used (2 texture, 67 arithmetic)
 

