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

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