enableTexture(texture)
    {
        const gl = this.gl;

        this.texture = texture || new GLTexture(gl);

        this.texture.bind();

        this.bind();

        gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, this.texture.texture, 0);
    }
/**
     * Adds a texture to the framebuffer.
     *
     * @param {GLTexture} texture - the texture to add.
     */
Adds a texture to the framebuffer.
@param {GLTexture} texture - the texture to add.
Adds a texture to the framebuffer . @param { GLTexture } texture - the texture to add .
enableTexture(texture)
    {
        const gl = this.gl;
        this.texture = texture || new GLTexture(gl);
        this.texture.bind();
        this.bind();
        gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, this.texture.texture, 0);
    }
enableTexture ( texture ) { const gl = this . gl ; this . texture = texture || new GLTexture ( gl ) ; this . texture . bind ( ) ; this . bind ( ) ; gl . framebufferTexture2D ( gl . FRAMEBUFFER , gl . COLOR_ATTACHMENT0 , gl . TEXTURE_2D , this . texture . texture , 0 ) ; }
Adds a texture to the framebuffer.
Adds a texture to the framebuffer .