diff --git a/src/cmd.rs b/src/cmd.rs index 4f08c74..2e741e4 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -925,7 +925,7 @@ fn spawn_entities( if state.is_sun { let (r, g, b) = nature::star_color_index_to_rgb(0.656); actor.insert(materials.add(StandardMaterial { - base_color: Color::rgb(r, g, b) * 13.0, + base_color: Color::srgb(r, g, b) * 13.0, unlit: true, ..default() })); diff --git a/src/load.rs b/src/load.rs index 096339f..d648c88 100644 --- a/src/load.rs +++ b/src/load.rs @@ -121,7 +121,7 @@ impl AsteroidSurface { pub fn material() -> ExtendedMaterial { ExtendedMaterial { base: StandardMaterial { - base_color: Color::rgb(0.29, 0.255, 0.208), + base_color: Color::srgb(0.29, 0.255, 0.208), perceptual_roughness: 1.0, opaque_render_method: OpaqueRendererMethod::Auto, ..default() diff --git a/src/menu.rs b/src/menu.rs index 26fe567..1d5ef9a 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -186,7 +186,7 @@ pub fn setup( MenuElement, NodeBundle { style: style_fullscreen(), - background_color: Color::rgba(0.0, 0.0, 0.0, 0.8).into(), + background_color: Color::srgba(0.0, 0.0, 0.0, 0.8).into(), visibility: Visibility::Hidden, ..default() }, diff --git a/src/world.rs b/src/world.rs index a703844..8ef492b 100644 --- a/src/world.rs +++ b/src/world.rs @@ -115,7 +115,7 @@ pub fn setup( //(radius as f64 * nature::SOL_RADIUS).powf(0.02) as f32 * let star_color_handle = materials.add(StandardMaterial { - base_color: Color::rgb(scale_color(r), scale_color(g), scale_color(b)), + base_color: Color::srgb(scale_color(r), scale_color(g), scale_color(b)), unlit: true, ..default() });