[Webkit-unassigned] [Bug 270465] New: Vision Pro incorrectly applies gamma in WebXR session
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 4 11:31:22 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=270465
Bug ID: 270465
Summary: Vision Pro incorrectly applies gamma in WebXR session
Product: WebKit
Version: Safari 17
Hardware: Vision Pro
OS: visionOS
Status: NEW
Severity: Normal
Priority: P2
Component: WebXR
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nb at 8thwall.com
Created attachment 470163
--> https://bugs.webkit.org/attachment.cgi?id=470163&action=review
Non-immersive and immersive colors differ with the same shader.
When entering a WebXR session on vision pro, the colors appear washed out, and transparent objects are not transparent enough.
This can be corrected with code like:
`color = pow(color, vec4(2.2, 2.2, 2.2, 2.2))`
Note that it's important to correct the alpha channel in addition to the other color channels to get correct results.
You can see the effect in the attached screenshots. Before entering a webXR session, the colors look too dark (because of the inverse gamma corretion), but they look correct now in the WebXR view using the same shaders.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240304/acfe181b/attachment.htm>
More information about the webkit-unassigned
mailing list