Skip to content

Commit 0bc7bf0

Browse files
committed
Fix deferred spot lights
1 parent 03ec2d4 commit 0bc7bf0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

kool-core/src/commonMain/kotlin/de/fabmax/kool/pipeline/deferred/DeferredSpotLights.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class DeferredSpotLights(val maxSpotAngle: AngleF) {
5454
.rotate(light.rotation)
5555
modelMat.transform(tmpLightDir.set(Vec3f.X_AXIS), 0f)
5656
modelMat.scale(light.radius)
57+
set(SpotLightInstanceLayout.modelMat, modelMat)
5758

5859
set(SpotLightInstanceLayout.lightPos,
5960
light.position.x,

0 commit comments

Comments
 (0)