Skip to content

Commit

Permalink
Use Color::srgb* instead of Color::rgb*
Browse files Browse the repository at this point in the history
Addresses Bevy [12163](bevyengine/bevy#12163)
  • Loading branch information
zhaop authored and jakobhellermann committed Aug 11, 2024
1 parent 64fd117 commit b474d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_editor_pls_default_windows/src/gizmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ impl EditorWindow for GizmoWindow {
fn app_setup(app: &mut App) {
let mut materials = app.world_mut().resource_mut::<Assets<StandardMaterial>>();
let material_light = materials.add(StandardMaterial {
base_color: Color::rgba_u8(222, 208, 103, 255),
base_color: Color::srgba_u8(222, 208, 103, 255),
unlit: true,
fog_enabled: false,
alpha_mode: AlphaMode::Add,
..default()
});
let material_camera = materials.add(StandardMaterial {
base_color: Color::rgb(1.0, 1.0, 1.0),
base_color: Color::srgb(1.0, 1.0, 1.0),
unlit: true,
fog_enabled: false,
alpha_mode: AlphaMode::Multiply,
Expand Down

0 comments on commit b474d0f

Please sign in to comment.