Skip to content

Commit

Permalink
Fix order of arguments in WGSL select
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaskorz authored and hasenbanck committed Aug 19, 2021
1 parent 70cc048 commit b0eb726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shader/egui.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn linear_from_srgb(srgb: vec3<f32>) -> vec3<f32> {
let cutoff = srgb < vec3<f32>(10.31475);
let lower = srgb / vec3<f32>(3294.6);
let higher = pow((srgb + vec3<f32>(14.025)) / vec3<f32>(269.025), vec3<f32>(2.4));
return select(lower, higher, cutoff);
return select(higher, lower, cutoff);
}

[[stage(vertex)]]
Expand Down

0 comments on commit b0eb726

Please sign in to comment.