jakobhellermann / bevy-inspector-egui

Inspector plugin for the bevy game engine
Apache License 2.0
1.15k stars 169 forks source link

LinearRGBA should not be clamped to 0.0-1.0 #207

Closed Azorlogh closed 1 month ago

Azorlogh commented 1 month ago

Linear RGB values, such as those used in emissive materials, should not be clamped to 0.0-1.0 as they can exceed it (See https://docs.rs/bevy/latest/bevy/pbr/struct.StandardMaterial.html#structfield.emissive)

Currently, inspecting a material with exceeding values will clamp them as soon as the menu is opened

I think this is the relevant location: https://github.com/kristoff3r/bevy-inspector-egui/blob/044f3d28243b5f30a594088bd8c56eeaac1868d4/crates/bevy-inspector-egui/src/inspector_options/default_options.rs#L75C5-L75C26

jakobhellermann commented 1 month ago

fixed in f931976