-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Skip CAS HDR conversions for LDR input and use half-precision in WGSL #8509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -8,33 +8,38 @@ export default /* wgsl */` | |||||
| uniform sharpness: f32; | ||||||
|
|
||||||
| // reversible LDR <-> HDR tone mapping, as CAS needs LDR input | ||||||
|
||||||
| // reversible LDR <-> HDR tone mapping, as CAS needs LDR input | |
| // reversible LDR <-> HDR tone mapping (HDR only), as CAS needs LDR input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment
// reversible LDR <-> HDR tone mapping, as CAS needs LDR input(line 10 in the GLSL file and same in WGSL) now precedes a#ifdef CAS_HDR / #elseblock. In the#else(LDR) branch, no tone mapping is performed at all —toSDRandtoHDRare identity functions. The comment is therefore misleading in the LDR case. It should be updated to clarify that the tone mapping is only applied for HDR scenes, for example:// reversible LDR <-> HDR tone mapping (HDR only), as CAS needs LDR input.