4 ms·
> making a WebGL viewer that does the anaglyph processing in the browser but that’s a non-starter if I can only output in the sRGB color space. There's apparen
by mncharity 4y ago
> making a WebGL viewer that does the anaglyph processing in the browser but that’s a non-starter if I can only output in the sRGB color space.
There's apparently now WebGL support for display-p3[1] on Chrome and Safari.[2] Anaglyph shaders can be straightforward[3] - I had fun playing with shallow-3D desktop UIs.
[1] https://en.wikipedia.org/wiki/DCI-P3 https://en.wikipedia.org/wiki/DCI-P3
[2] https://caniuse.com/?search=drawingBufferColorSpace https://caniuse.com/?search=drawingBufferColorSpace https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferColorSpace https://developer.mozilla.org/en-US/docs/Web/API/WebGLRender... https://bugzilla.mozilla.org/show_bug.cgi?id=1771373 https://bugzilla.mozilla.org/show_bug.cgi?id=1771373
[3] https://www.shadertoy.com/results?query=anaglyph https://www.shadertoy.com/results?query=anaglyph https://threejs.org/examples/webgl_effects_anaglyph.html https://threejs.org/examples/webgl_effects_anaglyph.html