//CGVER3.4
//
// Generated by Microsoft (R) D3DX9 Shader Compiler 5.04.00.2904
//
//   fxc /T vs_1_1 /Zpr /DCGC=0 /Fc $$out.cg $$in.cg
//
//
// Parameters:
//
//   float4 $CameraPos;
//   float3 $Fog;
//   row_major float4x4 $ModelViewProj;
//   float4 $NoisePos;
//   float4 $TexDetailScale;
//   float4 $TexGenRipple0;
//   float4 $TexGenRipple1;
//   row_major float4x4 $TexProjMatrix;
//   float4 $TexShiftRipple;
//   float4 $WaterLevel;
//   float4 $g_VSCONST_0_025_05_1;
//   float4 $pg[66];
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   $ModelViewProj        c0       4
//   $NoisePos             c4       1
//   $CameraPos            c5       1
//   $TexProjMatrix        c6       4
//   $TexShiftRipple       c10      1
//   $TexGenRipple0        c11      1
//   $TexGenRipple1        c12      1
//   $TexDetailScale       c13      1
//   $WaterLevel           c14      1
//   $g_VSCONST_0_025_05_1 c28      1
//   $Fog                  c29      1
//   $pg                   c30     66
//

    vs_1_1
    def c15, 0.03125, 32, -1, 0
    def c16, 2, 3, 0, 0
    dcl_position v0
    dcl_color v1
    add r1.xy, v0, c4
    mul r2.xy, r1, c15.x
    frc r0.xy, r2
    frc r3.xy, r1
    mul r0.w, r0.x, c15.y
    mov a0.x, r0.w
    mov r1.x, c30[a0.x].w
    mov r1.y, c31[a0.x].w
    mad r2.xy, r0.y, c15.y, r1
    add r0.xy, r3, c15.z
    mov a0.x, r2.y
    mul r0.xy, r0, c31[a0.x]
    add r1.y, r0.y, r0.x
    add r0, r3.xyxy, c15.zwwz
    mov a0.x, r2.x
    mul r4.xy, r0.zwzw, c31[a0.x]
    mov a0.x, r2.y
    mul r0.xy, r0, c30[a0.x]
    mov a0.x, r2.x
    mul r2.xy, r3, c30[a0.x]
    add r1.x, r4.y, r4.x
    add r2.x, r2.y, r2.x
    add r2.y, r0.y, r0.x
    mul r0.xy, r3, r3
    mad r3.xy, c16.x, -r3, c16.y
    add r1.xy, r1, -r2
    mul r0.xy, r0, r3
    mad r1.xy, r0.y, r1, r2
    add r0.w, -r1.x, r1.y
    mad r0.w, r0.x, r0.w, r1.x
    mov r0.x, c4.w
    mad r0.z, r0.w, r0.x, c14.x
    mov r0.xyw, v0
    dp4 oPos.x, c0, r0
    dp4 r1.x, r0, c11
    dp4 r1.y, r0, c12
    dp4 oPos.y, c1, r0
    add r1.xy, r1, c10
    mul oT3.xy, r1, c13
    mov oT0.xy, r1
    dp4 oT1.x, c6, r0
    add r1.xyz, -r0, c5
    dp4 oT1.y, c7, r0
    dp3 r1.x, r1, r1
    dp4 oT1.z, c8, r0
    rsq r1.w, r1.x
    dp4 oT1.w, c9, r0
    mul r1.w, r1.z, r1.w
    max oT2.xy, -r1.w, r1.w
    dp4 r1.z, c2, r0
    dp4 r1.w, c3, r0
    mad r0.w, c29.x, -r1.z, c29.y
    mov oPos.zw, r1
    max r0.w, r0.w, c28.x
    min oFog, r0.w, c28.w
    mov oT2.zw, c15.w
    mov oD0, v1
    mov oD1, c15.w

// approximately 62 instruction slots used
