<?xml version="1.0" encoding="iso-8859-1"?>

<CustomShader version="1.0" classRequirement="">
    <LodLevel startDistance="0">
        <Parameters>
		 <Parameter name="UVPlaySpeed" target="In.mat.UVPlaySpeed" type="float3"/>
        </Parameters>
        <CodeInjections>
			<CodeInjection position="MATERIALINFO">
<![CDATA[
uniform float3 UVPlaySpeed;
]]>
          </CodeInjection>
		
			<CodeInjection position="POST_SET_TEXCOORDS_VS">
				<![CDATA[
				#if defined(ALBEDO_MAP) || defined(EMISSIVE_MAP)
					float2 uv = getTexCoords(In, ALBEDOMAP_TEXCOORD);
					uv.y -= In.mat.UVPlaySpeed.y;
					setTexCoords(Out.texCoords[ALBEDOMAP_TEXCOORD/2], ALBEDOMAP_TEXCOORD, uv);
				#endif
				]]>
        	</CodeInjection>
     	  </CodeInjections>
    </LodLevel>
</CustomShader>
