mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
parent
d5a7330431
commit
7be096a254
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ fn camera_order_color_system(
|
|||
for visible_entity in visible_entities.iter() {
|
||||
if let Ok(material_handle) = material_query.get(visible_entity.entity) {
|
||||
let material = materials.get_mut(&*material_handle).unwrap();
|
||||
let value = 1.0 - (visible_entity.order.0 - 10.0) / 7.0;
|
||||
let value = 1.0 - (visible_entity.order.0.sqrt() - 10.0) / 7.0;
|
||||
material.albedo = Color::rgb(value, value, value);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue