use bottom left origin for ui

This commit is contained in:
Carter Anderson 2020-05-30 21:15:55 -07:00
parent a5df2ca62b
commit a463c040d7

View file

@ -1,4 +1,4 @@
use crate::{mesh::Mesh, Camera, Renderable, OrthographicProjection, PerspectiveProjection, base_render_graph};
use crate::{mesh::Mesh, Camera, Renderable, OrthographicProjection, PerspectiveProjection, base_render_graph, WindowOrigin};
use bevy_asset::Handle;
use bevy_derive::EntityArchetype;
use bevy_transform::components::{LocalToWorld, Rotation, Scale, Translation};
@ -51,7 +51,10 @@ impl OrthographicCameraEntity {
name: Some("UiCamera".to_string()),
..Default::default()
},
orthographic_projection: Default::default(),
orthographic_projection: OrthographicProjection {
window_origin: WindowOrigin::BottomLeft,
..Default::default()
},
local_to_world: Default::default(),
translation: Default::default(),
rotation: Default::default(),