UNPKG

three

Version:

JavaScript 3D library

9 lines (6 loc) 219 B
export default /* glsl */` #ifdef PREMULTIPLIED_ALPHA // Get normal blending with premultipled, use with CustomBlending, OneFactor, OneMinusSrcAlphaFactor, AddEquation. gl_FragColor.rgb *= gl_FragColor.a; #endif `;