summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-24 19:20:16 +0200
committerHampusM <hampus@hampusmat.com>2024-05-24 19:20:21 +0200
commitde48442a11aa0638e2fbe70df8b31e264ab3b03e (patch)
tree7529f0f866e60268eb7ff6fb35ab3e04f02ed1ab /src
parent7756fdab0522c52b81f3bc70e2458a3b683f0a20 (diff)
fix: make point light have correct position
Diffstat (limited to 'src')
-rw-r--r--src/main.rs1
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,