//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4x4 LocalToWorld;
//   float4 SurfaceUndulationValues;
//   float4x4 ViewProjectionMatrix;
//   bool bEnableSurfaceUndulation;
//
//
// Registers:
//
//   Name                     Reg   Size
//   ------------------------ ----- ----
//   bEnableSurfaceUndulation b0       1
//   ViewProjectionMatrix     c0       4
//   LocalToWorld             c12      4
//   SurfaceUndulationValues  c16      1
//

    vs_3_0
    def c4, 0.159154937, 0.5, 6.28318548, -3.14159274
    def c5, 0, 0, 0, 0
			  def c253, 0, 0, 0.0625, 1
	  dcl_2d s0
    dcl_position v0
    dcl_texcoord9 o0
    dcl_texcoord7 o1
    dcl_position o2
    if b0
      add r0.xy, c16.y, v0
      mul r0.xy, r0, c16.zwzw
      mad r0.xy, r0, c4.x, c4.y
      frc r0.xy, r0
      mad r0.xy, r0, c4.z, c4.w
      sincos r1.x, r0.x
      sincos r2.x, r0.y
      mul r0.x, r1.x, r2.x
      mad r0.x, c16.x, r0_abs.x, v0.z
      mul r1, c13, v0.y
      mad r1, c12, v0.x, r1
      mad r0, c14, r0.x, r1
      add r0, r0, c15
    else
      mul r1, c13, v0.y
      mad r1, c12, v0.x, r1
      mad r1, c14, v0.z, r1
      add r0, r1, c15
    endif
    mul r1, r0.y, c1
    mad r1, c0, r0.x, r1
    mad r1, c2, r0.z, r1
    mad r0, c3, r0.w, r1
    mov o0, c5.x
    mov r12, r0
    mov o2, r0
				 texldl r11, c253.z, s0
 if_ne r12.w, c253.w
 add r11.y, r12.w, -r11.y
 mul r11.x, r11.x, r11.y
 add r12.x, r12.x, r11.x
 endif
 mov o1, r12

// approximately 43 instruction slots used
 