view/renderer/Renderer: we don't need a depth buffer
This commit is contained in:
parent
1712352d1c
commit
6370b60189
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export default class Renderer {
|
|||
const h = this.canvas.height;
|
||||
|
||||
this.gl.viewport(0, 0, w, h);
|
||||
this.gl.clear(this.gl.COLOR_BUFFER_BIT | this.gl.DEPTH_BUFFER_BIT);
|
||||
this.gl.clear(this.gl.COLOR_BUFFER_BIT);
|
||||
|
||||
mat4.identity(this.viewport);
|
||||
mat4.scale(this.viewport, this.viewport, [2 * 64 / w, -2 * 64 / h, 1.0]);
|
||||
|
|
Reference in a new issue