summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-04-21 16:04:30 +0200
committerHampusM <hampus@hampusmat.com>2024-04-21 16:04:30 +0200
commitf54b51c13ca0a647afbaef7c25f9ac3650be1c50 (patch)
tree9e6ddfe7fd0ba449c842d796ef096b615269f4d3 /src/main.rs
parentad67712586cfcfe5236efda93b9e15aefdc9fcf5 (diff)
chore: create light source with transform
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 95e2eae..b0ad6b2 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -57,10 +57,7 @@ fn main() -> Result<(), Box<dyn Error>>
ShaderProgram::new()?,
));
- engine.spawn((LightSource {
- position: Vec3 { x: 1.2, y: 1.0, z: 1.5 },
- ..Default::default()
- },));
+ engine.spawn((LightSource { ..Default::default() }, Transform::default()));
engine.spawn((Camera { current: true, ..Default::default() },));