<?xml version="1.0" encoding="utf-8"?>

<CustomShader version="2" classRequirement="">
    <LodLevel startDistance="0">
        <Parameters>
            <Parameter name="directionAndFrequency" target="directionAndFrequency" type="float4" />
        </Parameters>
        <CodeInjections>
        
          <CodeInjection position="MATERIALINFO">
<![CDATA[
float4 directionAndFrequency;
]]>
          </CodeInjection>        
        
            <CodeInjection position="GET_POSITION_VS">
<![CDATA[
float offset = sin(time.y + In.position.x*In.position.y * directionAndFrequency.w)*In.texCoords[0].y*8;
return float4(In.position.xyz + directionAndFrequency.xyz * offset, 1.0);
]]>
            </CodeInjection>
        </CodeInjections>
    </LodLevel>
</CustomShader>
