Color mapping fails for some class-ids values #1968
Labels
🔺 re_renderer
affects re_renderer itself
🦟 regression
A thing that used to work in an earlier release
For certain values of class-id such as "3" we end up showing the color for the previous class.
Minimal repro:
Output:
A bit of investigation hints at this being somehow related to inappropriate application of gamma:
if I modify the value normalization:
https://github.com/rerun-io/rerun/blob/main/crates/re_renderer/shader/rectangle_fs.wgsl#L76
To force a gamma of 1.0:
Then everything works.
However, as far as I can tell we are passing gamma of 1.0 for these class-id mappings, so it seems like something is going wrong in the way the uniform is being mapped?
The text was updated successfully, but these errors were encountered: