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

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