UNPKG
utk-render
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
FiveM Realtime GameView for HTML
github.com/felipecoder/utk_render_npm
felipecoder/utk_render_npm
utk-render
/
src
/
module
/
renderers
/
shaders
/
ShaderChunk
/
premultiplied_alpha_fragment.glsl.js
9 lines
(6 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
default
/* glsl */
`
#
ifdef
PREMULTIPLIED_ALPHA
// Get get normal blending with premultipled, use with CustomBlending, OneFactor, OneMinusSrcAlphaFactor, AddEquation.
gl_FragColor.rgb *= gl_FragColor.a;
#
endif
`;