diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-24 19:20:16 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-24 19:20:21 +0200 |
commit | de48442a11aa0638e2fbe70df8b31e264ab3b03e (patch) | |
tree | 7529f0f866e60268eb7ff6fb35ab3e04f02ed1ab | |
parent | 7756fdab0522c52b81f3bc70e2458a3b683f0a20 (diff) |
fix: make point light have correct position
-rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index a9bb704..1ec6d65 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,6 +71,7 @@ fn main() -> Result<(), Box<dyn Error>> engine.spawn(( PointLight::builder() + .position(Vec3 { x: -6.0, y: 3.0, z: 3.0 }) .diffuse(YELLOW) .attenuation_params(AttenuationParams { linear: 0.045, |