diff options
| author | Micha White <botahamec@outlook.com> | 2022-10-17 22:45:31 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-10-17 22:45:31 -0400 |
| commit | e017b675d96c58924071ca6c739bbd7910a2b2b4 (patch) | |
| tree | d33397c25ab1f2ae4b2605324256cac8010c87eb /examples/bmp.rs | |
| parent | 4574ec41259f42dceea4f770290d9975a8943db0 (diff) | |
Depth ordering
Diffstat (limited to 'examples/bmp.rs')
| -rw-r--r-- | examples/bmp.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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() |
