Refactor
This commit is contained in:
parent
25caf2fd5f
commit
9c64392e01
1 changed files with 16 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ export abstract class FrameBuffer {
|
|||
|
||||
constructor(protected readonly gl: UniversalRenderingContext) {}
|
||||
|
||||
public bindAndClear(inputTextures: Array<Texture>) {
|
||||
public bindAndClear(inputTextures: Array<Texture> = []) {
|
||||
this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, this.frameBuffer);
|
||||
|
||||
inputTextures.forEach((t) => t.bind());
|
||||
|
|
|
|||
Loading…
Reference in a new issue