<?xml version="1.0" encoding="utf-8"?>
<CustomShader version="3">
    <LodLevel startDistance="0">
        <CodeInjections>
            <CodeInjection position="VS_OUTPUT"><![CDATA[
float mFlickering : TEXCOORDn;
]]></CodeInjection>
            <CodeInjection position="VS_END"><![CDATA[
        Out.mFlickering = clamp( sin(cTime_s*3), -1, 1 );
]]></CodeInjection>
            <CodeInjection position="POST_ALBEDO_FS"><![CDATA[
        albedo.xyz = float3(0.2, 0.2, 0);
]]></CodeInjection>
            <CodeInjection position="ALPHA_FS"><![CDATA[
    oColor.a *= 2 + In.vs.mFlickering;
]]></CodeInjection>
            <CodeInjection position="FINAL_POS_FS"><![CDATA[
        oColor.a = 0.0f; // additive blending
]]></CodeInjection>
        </CodeInjections>
    </LodLevel>
</CustomShader>
