bind()
    {
        const gl = this.gl;

        if (this.texture)
        {
            this.texture.unbind();
        }

        gl.bindFramebuffer(gl.FRAMEBUFFER, this.framebuffer);
    }
/**
     * Binds the frame buffer to the WebGL context
     */
Binds the frame buffer to the WebGL context
Binds the frame buffer to the WebGL context
bind()
    {
        const gl = this.gl;
        if (this.texture)
        {
            this.texture.unbind();
        }
        gl.bindFramebuffer(gl.FRAMEBUFFER, this.framebuffer);
    }
bind ( ) { const gl = this . gl ; if ( this . texture ) { this . texture . unbind ( ) ; } gl . bindFramebuffer ( gl . FRAMEBUFFER , this . framebuffer ) ; }
Binds the frame buffer to the WebGL context
Binds the frame buffer to the WebGL context