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

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

            <CodeInjection position="MATERIALINFO">
                <![CDATA[
                float4 alpha;
                ]]>
            </CodeInjection>
            
            <CodeInjection position="GET_REFLECTION_COLOR_FS">
                <![CDATA[
                #if defined(REFLECTION_MAP_2D) || defined(REFLECTION_MAP_CUBE)
                    res = lerp(oColor.xyz, getReflectionColorTex(In, globals, normal, viewDir)*alpha.x, fresnel);
                #endif
                ]]>
	        </CodeInjection>

     	  </CodeInjections>
    </LodLevel>
</CustomShader>
