Color management for WebGL
Newly Available (since 2024-10-29)
Expected to be Widely Available on 2027-04-29
The drawingBufferColorSpace and unpackColorSpace properties of WebGLRenderingContext sets the color representation for the buffer and imported textures, such as "srgb" or "display-p3".
Browser support
- 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
MDN documentation
Specifications
- WebGL Specification (#DOM-WebGLRenderingContext-drawingBufferColorSpace), from WebGL Working Group (Khronos Group).
- WebGL Specification (#DOM-WebGLRenderingContext-unpackColorSpace), from WebGL Working Group (Khronos Group).
Usage (according to Chrome Platform Status)
~0.177% of page loads. More data at chromestatus.com.View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist