Skip to content

Commit ad615dc

Browse files
into_linear_f32 -> color.0.linear().to_f32_array(),
[12163](bevyengine/bevy#12163) bevy_color was created and Color handling has changed. Specifically Color::as_linear_rgba_f32 has been removed. LinearRgba is now its own type that can be accessed via [`linear()`](https://docs.rs/bevy/0.14.0-rc.2/bevy/color/enum.Color.html#method.linear) and then converted.
1 parent 31e330e commit ad615dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render/extract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn extract(
282282
visible: visible.0,
283283
position,
284284
texture,
285-
color: color.0.as_linear_rgba_f32(),
285+
color: color.0.linear().to_f32_array(),
286286
};
287287

288288
let data = tilemap_query.get(tilemap_id.0).unwrap();

0 commit comments

Comments
 (0)