diff options
-rw-r--r-- | src/view/renderer/Renderer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/renderer/Renderer.ts b/src/view/renderer/Renderer.ts index f2f72a6..9358515 100644 --- a/src/view/renderer/Renderer.ts +++ b/src/view/renderer/Renderer.ts @@ -14,6 +14,10 @@ export default class Renderer { this.gl.clearColor(0.0, 0.0, 0.0, 1.0); + this.gl.enable(this.gl.BLEND); + this.gl.blendFunc(this.gl.ONE, this.gl.ONE_MINUS_SRC_ALPHA); + this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1); + this.setSize(); } |