summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 00:19:02 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2018-10-31 00:32:52 +0100
commit7b9d4673865e15a9182546ee32689edb9c402018 (patch)
tree1569210e2fb742635ac4c103dc5f2bbf52423e55 /src
parent7a9cd3633718a044aacad94bc8d27fb44b138f6b (diff)
downloadrpgedit-7b9d4673865e15a9182546ee32689edb9c402018.tar
rpgedit-7b9d4673865e15a9182546ee32689edb9c402018.zip
view: enable alpha blending
Diffstat (limited to 'src')
-rw-r--r--src/view/renderer/Renderer.ts4
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();
}