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

<CustomShader version="2" classRequirement="">
    <LodLevel startDistance="0">
        <Parameters>
            <Parameter name="displacementSpeedFrequencyAndTexOff" target="displacementSpeedFrequencyAndTexOff" type="float4" />
        </Parameters>
        <CodeInjections>

          <CodeInjection position="MATERIALINFO">
<![CDATA[
float4 displacementSpeedFrequencyAndTexOff;
]]>
          </CodeInjection>

            <CodeInjection position="GET_POSITION_VS">
<![CDATA[
float amount = max(0.0, In.texCoords[0].x*8-displacementSpeedFrequencyAndTexOff.w);
float offset = sin(time.y*displacementSpeedFrequencyAndTexOff.y + In.position.x*In.position.y*displacementSpeedFrequencyAndTexOff.z)*amount;
return float4(In.position.xyz + float3(0.0, displacementSpeedFrequencyAndTexOff.x*offset * 0.35, displacementSpeedFrequencyAndTexOff.x*offset), 1.0);
]]>
            </CodeInjection>
        </CodeInjections>
    </LodLevel>
</CustomShader>
