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

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