diff --git a/crates/bevy_render/src/color.rs b/crates/bevy_render/src/color.rs index 5c12053d3e4db..32ed8d2818596 100644 --- a/crates/bevy_render/src/color.rs +++ b/crates/bevy_render/src/color.rs @@ -321,7 +321,7 @@ impl Color { green, blue, alpha, - } => Color::Rgba { + } => Color::RgbaLinear { red: red.nonlinear_to_linear_srgb(), green: green.nonlinear_to_linear_srgb(), blue: blue.nonlinear_to_linear_srgb(), diff --git a/pipelined/bevy_render2/src/color/mod.rs b/pipelined/bevy_render2/src/color/mod.rs index 8f4e666352e00..c229da03a5d21 100644 --- a/pipelined/bevy_render2/src/color/mod.rs +++ b/pipelined/bevy_render2/src/color/mod.rs @@ -317,7 +317,7 @@ impl Color { green, blue, alpha, - } => Color::Rgba { + } => Color::RgbaLinear { red: red.nonlinear_to_linear_srgb(), green: green.nonlinear_to_linear_srgb(), blue: blue.nonlinear_to_linear_srgb(),