A GLenum specifying the attachment point for the texture. Possible values:
gl.COLOR_ATTACHMENT0: Attaches the texture to the framebuffer's color buffer.
gl.DEPTH_ATTACHMENT: Attaches the texture to the framebuffer's depth buffer.
gl.STENCIL_ATTACHMENT: Attaches the texture to the framebuffer's stencil buffer.
When using a WebGL 2 context, the following values are available additionally:
A GLenum specifying the attachment point for the texture. Possible values:
gl.COLOR_ATTACHMENT0: Attaches the texture to the framebuffer's color buffer. gl.DEPTH_ATTACHMENT: Attaches the texture to the framebuffer's depth buffer. gl.STENCIL_ATTACHMENT: Attaches the texture to the framebuffer's stencil buffer.
When using a WebGL 2 context, the following values are available additionally:
gl.DEPTH_STENCIL_ATTACHMENT: depth and stencil buffer. gl.COLOR_ATTACHMENT1 gl.COLOR_ATTACHMENT2 gl.COLOR_ATTACHMENT3 gl.COLOR_ATTACHMENT4 gl.COLOR_ATTACHMENT5 gl.COLOR_ATTACHMENT6 gl.COLOR_ATTACHMENT7 gl.COLOR_ATTACHMENT8 gl.COLOR_ATTACHMENT9 gl.COLOR_ATTACHMENT10 gl.COLOR_ATTACHMENT11 gl.COLOR_ATTACHMENT12 gl.COLOR_ATTACHMENT13 gl.COLOR_ATTACHMENT14 gl.COLOR_ATTACHMENT15