view: enable alpha blending
This commit is contained in:
parent
7a9cd36337
commit
7b9d467386
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue