Update RenderWebGL.js
Modified blend function in `_drawThese` to blend skins with premultiplied alpha correctly
This commit is contained in:
parent
9f7bd971c9
commit
7628c1e7f9
@ -1621,6 +1621,8 @@ class RenderWebGL extends EventEmitter {
|
||||
|
||||
twgl.setUniforms(currentShader, uniforms);
|
||||
|
||||
gl.blendFuncSeparate(gl.ONE,gl.ONE_MINUS_SRC_ALPHA,gl.ONE,gl.ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
twgl.drawBufferInfo(gl, this._bufferInfo, gl.TRIANGLES);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user