summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 81d9b6c..a93efa1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -89,7 +89,12 @@ fn main() -> Result<(), Box<dyn Error>>
MaterialFlags::builder().use_ambient_color(true).build(),
));
- engine.spawn((Camera { current: true, ..Default::default() },));
+ engine.spawn((
+ Camera { current: true, ..Default::default() },
+ Position {
+ position: Vec3 { x: 0.0, y: 0.0, z: 3.0 },
+ },
+ ));
engine.add_sole(GlobalLight::default())?;