Fixed alpha on graphics shader

This commit is contained in:
Felipe Alfonso 2017-12-07 11:58:24 -03:00
parent ea0c1ab81c
commit 2423b4c5fa

View file

@ -22,7 +22,7 @@ module.exports = {
'varying vec4 v_color;',
'varying float v_alpha;',
'void main() {',
' gl_FragColor = vec4(v_color.bgr, v_alpha);',
' gl_FragColor = vec4(v_color.bgr * v_alpha, v_alpha);',
'}'
].join('\n')
};