Update RenderWebGL.js

This commit is contained in:
peabrainiac
2019-03-03 18:12:13 +01:00
committed by GitHub
parent f2a7085492
commit 147b79d319

View File

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