mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
fix: as_rgba_linear used wrong variant (#3192)
# Objective as_rgba_linear used wrong variant ## Solution Fixed it.
This commit is contained in:
parent
f512c853d7
commit
73fd6a6f6f
2 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue