Update RenderWebGL.js

This commit is contained in:
peabrainiac 2019-03-03 17:58:12 +01:00 committed by GitHub
parent 996a1d6cf7
commit f2a7085492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1622,7 +1622,7 @@ class RenderWebGL extends EventEmitter {
twgl.setUniforms(currentShader, uniforms);
/* set blend function to work with premultiplied alpha */
gl.blendFuncSeparate(gl.ONE, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
gl.blendFuncSeparate(gl.ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA);
twgl.drawBufferInfo(gl, this._bufferInfo, gl.TRIANGLES);
}