From f54b51c13ca0a647afbaef7c25f9ac3650be1c50 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 21 Apr 2024 16:04:30 +0200 Subject: chore: create light source with transform --- src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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> 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() },)); -- cgit v1.2.3-18-g5258