bevy14: Fix error with multiplying color by float

This commit is contained in:
yuni 2024-07-09 02:41:50 +02:00
parent f8cb84ccb1
commit 82ff5491a6

View file

@ -925,7 +925,7 @@ fn spawn_entities(
if state.is_sun { if state.is_sun {
let (r, g, b) = nature::star_color_index_to_rgb(0.656); let (r, g, b) = nature::star_color_index_to_rgb(0.656);
actor.insert(materials.add(StandardMaterial { actor.insert(materials.add(StandardMaterial {
base_color: Color::srgb(r, g, b) * 13.0, base_color: Color::srgb(r * 13.0, g * 13.0, b * 13.0),
unlit: true, unlit: true,
..default() ..default()
})); }));