RESOLVED DUPLICATE of bug 222822 259768
SRGB8_ALPHA8 is broken when using video textures.
https://bugs.webkit.org/show_bug.cgi?id=259768
Summary SRGB8_ALPHA8 is broken when using video textures.
Michael Herzog
Reported 2023-08-03 01:48:15 PDT
three.js is using SRGB8_APLHA8 for sRGB encoded textures. That works fine for textures loaded via the <img> or <canvas> tag. three.js provides a video texture class based on the <video> tag like demonstrated in the following example. https://threejs.org/examples/webgl_video_panorama_equirectangular As you can see, the colors are washed out though. That's because when configuring the video texture as SRGB8_APLHA8, the color space conversion to linear-srgb does not work anymore. The demo does work as expected in Edge, Chrome and Firefox.
Attachments
Michael Herzog
Comment 1 2023-08-03 01:51:38 PDT
Kimmo Kinnunen
Comment 2 2023-08-09 00:59:41 PDT
Thanks, I can repro.
Radar WebKit Bug Importer
Comment 3 2023-08-09 00:59:51 PDT
Kimmo Kinnunen
Comment 4 2023-08-09 01:00:51 PDT
Working on this in bug 222822 *** This bug has been marked as a duplicate of bug 222822 ***
Note You need to log in before you can comment on or make changes to this bug.