Color management for WebGL
Newly available since 2024-10-29
The drawingBufferColorSpace
and unpackColorSpace
properties of WebGLRenderingContext
sets the color representation for the buffer and imported textures, such as "srgb"
or "display-p3"
.
To learn more, see
WebGLRenderingContext: drawingBufferColorSpace property,
WebGLRenderingContext: unpackColorSpace property at MDN.
Compatibility
- Chrome 104 Released on 2022-08-02
- Chrome Android 104 Released on 2022-08-02
- Edge 104 Released on 2022-08-05
- Firefox 132 Released on 2024-10-29
- Firefox for Android 132 Released on 2024-10-29
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
Specifications
- WebGL Specification (#DOM-WebGLRenderingContext-drawingBufferColorSpace), from WebGL Working Group (Khronos Group).
- WebGL Specification (#DOM-WebGLRenderingContext-unpackColorSpace), from WebGL Working Group (Khronos Group).