diff options
author | HampusM <hampus@hampusmat.com> | 2024-04-21 16:04:30 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-04-21 16:04:30 +0200 |
commit | f54b51c13ca0a647afbaef7c25f9ac3650be1c50 (patch) | |
tree | 9e6ddfe7fd0ba449c842d796ef096b615269f4d3 /src | |
parent | ad67712586cfcfe5236efda93b9e15aefdc9fcf5 (diff) |
chore: create light source with transform
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 5 |
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() },)); |