//water
// Generated by Microsoft (R) D3DX9 Shader Compiler 9.12.589.0000
//
// Parameters:
//
//   float g_game_time;
//   row_major float4x4 g_projection_world_transform;
//   float g_scroll_diffuse_1_normal_1_u;
//   float g_scroll_diffuse_1_normal_1_v;
//   float g_scroll_diffuse_2_normal_2_u;
//   float g_scroll_refraction_u;
//   float g_scroll_refraction_v;
//   float g_tile_diffuse_1_normal_1;
//   float g_tile_diffuse_2;
//   float g_tile_normal_2;
//   row_major float4x4 g_world_transform;
//   row_major float4x4 g_world_transform_for_vectors;
//
//
// Registers:
//
//   Name                          Reg   Size
//   ----------------------------- ----- ----
//   g_projection_world_transform  c0       4
//   g_world_transform             c4       4
//   g_world_transform_for_vectors c8       3
//   g_game_time                   c11      1
//   g_tile_diffuse_1_normal_1     c12      1
//   g_tile_normal_2               c13      1
//   g_tile_diffuse_2              c14      1
//   g_scroll_diffuse_1_normal_1_u c15      1
//   g_scroll_diffuse_1_normal_1_v c16      1
//   g_scroll_diffuse_2_normal_2_u c17      1
//   g_scroll_refraction_u         c18      1
//   g_scroll_refraction_v         c19      1
//
//
// Default values:
//
//   g_projection_world_transform
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//
//   g_world_transform
//     c4   = { 0, 0, 0, 0 };
//     c5   = { 0, 0, 0, 0 };
//     c6   = { 0, 0, 0, 0 };
//     c7   = { 0, 0, 0, 0 };
//
//   g_world_transform_for_vectors
//     c8   = { 0, 0, 0, 0 };
//     c9   = { 0, 0, 0, 0 };
//     c10  = { 0, 0, 0, 0 };
//
//   g_game_time
//     c11  = { 0, 0, 0, 0 };
//
//   g_tile_diffuse_1_normal_1
//     c12  = { 1, 0, 0, 0 };
//
//   g_tile_normal_2
//     c13  = { 1, 0, 0, 0 };
//
//   g_tile_diffuse_2
//     c14  = { 1, 0, 0, 0 };
//
//   g_scroll_diffuse_1_normal_1_u
//     c15  = { 0.1, 0, 0, 0 };
//
//   g_scroll_diffuse_1_normal_1_v
//     c16  = { 0.1, 0, 0, 0 };
//
//   g_scroll_diffuse_2_normal_2_u
//     c17  = { 0.1, 0, 0, 0 };
//
//   g_scroll_refraction_u
//     c18  = { 0.1, 0, 0, 0 };
//
//   g_scroll_refraction_v
//     c19  = { 0.1, 0, 0, 0 };
//

    vs_3_0
	def c200, -1.0, 90.0, 0.0625, 0.5
    dcl_position v0
    dcl_texcoord v1
    dcl_normal v2
    dcl_tangent v3
    dcl_binormal v4
    dcl_color v5
	dcl_2d s0
	dcl_position o0
	dcl_color1 o1
	dcl_texcoord0 o2
    dcl_texcoord1 o3
	dcl_texcoord2 o4
	dcl_texcoord3 o5
	dcl_texcoord5 o6.xyz
	dcl_texcoord6 o7.xyz
	dcl_texcoord7 o8.xyz
	
    mul r0.xyz, v2.y, c9
    mul r1.xyz, v0.y, c5
    mad r0.xyz, v2.x, c8, r0
    mad r1.xyz, v0.x, c4, r1
    mad r0.xyz, v2.z, c10, r0
    mad r1.xyz, v0.z, c6, r1
    add o4.xyz, r1, c7
    nrm r3.xyz, r0
    mov o6.xyz, r3
    mul r0.xyz, v3.y, c9
    mad r1.xyz, v3.x, c8, r0
    mul r0.xyz, v4.y, c9
    mad r1.xyz, v3.z, c10, r1
    mad r0.xyz, v4.x, c8, r0
    dp3 r2.x, r1, r1
    mad r0.xyz, v4.z, c10, r0
    rsq r0.w, r2.x
    mul o7.xyz, r1, r0.w
    mov r1.x, c15.x
    mov r1.y, c16.x
    nrm r3.xyz, r0
    mov o8.xyz, r3
    mul r1.xy, r1, c11.x
    mov r0.w, c11.x
    mad r0.x, r0.w, c17.x, v1.x
    mov r0.y, v1.y
    mad o2.xy, r1, c12.x, v1
    mul o2.zw, r0.xyxy, c14.x
    mul o3.xy, r0, c13.x
    mul r0, v0.y, c1
    mov r1.z, c18.x
    mad r0, v0.x, c0, r0
    mov r1.w, c19.x
    mad r0, v0.z, c2, r0
    mad o3.zw, c11.x, r1, v1.xyxy
    add r0, r0, c3
	
	
    mov o0, r0
    mov o1, v5
    mov o4.w, r0.w
	texldl r11, c200.z, s0	
	add r11.y, r0.w, -r11.y
	mul r11.x, r11.x, r11.y
	add r0.x, r0.x, r11.x
    mov o5, r0

// approximately 44 instruction slots used
 