Update RenderWebGL.js

Modified blend function in `_drawThese` to blend skins with premultiplied alpha correctly
This commit is contained in:
peabrainiac 2019-03-02 20:59:00 +01:00 committed by GitHub
parent 9f7bd971c9
commit 7628c1e7f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1620,7 +1620,9 @@ 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);
}