From e017b675d96c58924071ca6c739bbd7910a2b2b4 Mon Sep 17 00:00:00 2001 From: Micha White Date: Mon, 17 Oct 2022 22:45:31 -0400 Subject: Depth ordering --- examples/bmp.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/bmp.rs') diff --git a/examples/bmp.rs b/examples/bmp.rs index 7b649da..f68d573 100644 --- a/examples/bmp.rs +++ b/examples/bmp.rs @@ -33,7 +33,8 @@ fn main() { renderer.instances_mut().push_instance(Instance { position: [-0.5, 0.5], - size: [0.75; 2], + size: [1.5; 2], + z_index: 1.0, texture_size: [gator_width, gator_height], texture_coordinates: [gator_x, gator_y], ..Default::default() @@ -55,6 +56,7 @@ fn main() { position: [0.5, 0.5], size: [0.75; 2], rotation: 0.5, + z_index: 1.0, texture_size: [icon_width, icon_height], texture_coordinates: [icon_x, icon_y], ..Default::default() -- cgit v1.2.3