//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 gTime;
//   float4x4 gWorldView;
//   float4x4 gWorldViewProj;
//   float4 pRandom;
//   float pRandomU_OffOn;
//   float pRandomV_OffOn;
//   float pUVDistortMap1_ScaleU;
//   float pUVDistortMap1_ScaleV;
//   float pUVDistortMap1_ScrollU;
//   float pUVDistortMap1_ScrollV;
//
//
// Registers:
//
//   Name                   Reg   Size
//   ---------------------- ----- ----
//   pRandomV_OffOn         c0       1
//   pRandom                c1       1
//   pRandomU_OffOn         c2       1
//   pUVDistortMap1_ScaleU  c3       1
//   pUVDistortMap1_ScaleV  c4       1
//   pUVDistortMap1_ScrollU c5       1
//   pUVDistortMap1_ScrollV c6       1
//   gTime                  c51      1
//   gWorldView             c58      3
//   gWorldViewProj         c62      4
//
//
// Default values:
//
//   pRandomV_OffOn
//     c0   = { 1, 0, 0, 0 };
//
//   pRandom
//     c1   = { 0.023743, 0.840144, 0.297281, 0.266213 };
//
//   pRandomU_OffOn
//     c2   = { 1, 0, 0, 0 };
//
//   pUVDistortMap1_ScaleU
//     c3   = { 1, 0, 0, 0 };
//
//   pUVDistortMap1_ScaleV
//     c4   = { 1, 0, 0, 0 };
//
//   pUVDistortMap1_ScrollU
//     c5   = { 0, 0, 0, 0 };
//
//   pUVDistortMap1_ScrollV
//     c6   = { 0, 0, 0, 0 };
//

    vs_3_0
	def c200, 0.0, 1.0, 0.0625, 0.6
    dcl_position v0
    dcl_normal v1
    dcl_texcoord v2
    dcl_color v3
	dcl_2d s0
    dcl_texcoord o0.xyz
    dcl_texcoord1 o1
    dcl_texcoord2 o2.xy
    dcl_texcoord3 o3.xy
    dcl_texcoord4 o4
    dcl_color o5
    dcl_texcoord5 o6.xyz
    dcl_position o7
    mov r0.x, c51.x
    mul r0.y, r0.x, c5.x
    mad r1.x, v2.x, c3.x, r0.y
    mul r0.x, r0.x, c6.x
    mad r1.y, v2.y, c4.x, r0.x
    mov r0.xy, c1
    mul r2.x, r0.x, c0.x
    mul r2.y, r0.y, c2.x
    add o3.xy, r1, r2
    dp4 o4.z, v0, c60
    mov o0.xyz, v0
    dp4 r0.z, v0, c64
    dp4 r0.x, v0, c62
    dp4 r0.y, v0, c63
    dp4 r0.w, v0, c65
    mov o1, r0
    mov o7, r0
	
	texldl r12, c200.z, s0
	add r12.y, r0.w, -r12.y
	mul r12.x, r12.x, r12.y
	add r0.x, r0.x, r12.x
	
    mov o4.xyw, r0
    mov o2.xy, v2
    mov o5, v3
    mov o6.xyz, v1

// approximately 21 instruction slots used
 