Color management for WebGL2
Newly available since 2024-10-29
The drawingBufferColorSpace
and unpackColorSpace
properties of WebGL2RenderingContext
sets the color representation for the buffer and imported textures, such as "srgb"
or "display-p3"
.
Learning resources on MDN
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
Specifications
- WebGL 2.0 Specification, from WebGL Working Group (Khronos Group).