diff --git a/src/shader/egui.wgsl b/src/shader/egui.wgsl index a85650f..3ffbebf 100644 --- a/src/shader/egui.wgsl +++ b/src/shader/egui.wgsl @@ -15,7 +15,7 @@ fn linear_from_srgb(srgb: vec3) -> vec3 { let cutoff = srgb < vec3(10.31475); let lower = srgb / vec3(3294.6); let higher = pow((srgb + vec3(14.025)) / vec3(269.025), vec3(2.4)); - return select(lower, higher, cutoff); + return select(higher, lower, cutoff); } [[stage(vertex)]]