fireball/lib/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl

7 lines
193 B
Plaintext
Raw Normal View History

2018-12-25 13:59:22 +00:00
#ifdef PREMULTIPLIED_ALPHA
// Get get normal blending with premultipled, use with CustomBlending, OneFactor, OneMinusSrcAlphaFactor, AddEquation.
gl_FragColor.rgb *= gl_FragColor.a;
#endif