WebGLRenderingContext: colorMask() method - Web APIs | MDN
The WebGLRenderingContext.colorMask() method of the WebGL API sets which color components to enable or to disable when drawing or rendering to a WebGLFramebuffer.