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

<CustomShader version="3">
    <LodLevel startDistance="0">
        <CodeInjections>
            <CodeInjection position="GET_REFLECTION_REFRACTION_FACTOR_FS">
<![CDATA[
#if defined(REFLECTION_MAP_2D) || defined(REFLECTION_MAP_CUBE)
    float envScale = 0;
    #if (NUM_DIRECTIONAL_LIGHTS > 0)
        envScale = diffuseColors[0].y*1.2;
    #endif
    reflectionFactor *= envScale;
#endif
]]>
            </CodeInjection>
            <CodeInjection position="NUM_TEXCOORDS">
<![CDATA[
#if GPU_PROFILE < GPU_PROFILE_MEDIUM
    #if defined(REFLECTION_MAP_CUBE)
    #undef REFLECTION_MAP_CUBE
    #endif
#endif
]]>
            </CodeInjection>
        </CodeInjections>
    </LodLevel>
    <LodLevel startDistance="30">
        <Parameters>
        </Parameters>
        <CodeInjections>
            <CodeInjection position="NUM_TEXCOORDS">
<![CDATA[
#if defined(REFLECTION_MAP_CUBE)
#undef REFLECTION_MAP_CUBE
#endif
]]>
            </CodeInjection>
        </CodeInjections>
    </LodLevel>
</CustomShader>