From 50b3830fff5ffdf2d6c726a87bcbf0abf6a90037 Mon Sep 17 00:00:00 2001 From: ahbejarano Date: Fri, 31 May 2024 18:18:16 +0200 Subject: [PATCH] Update missing files for cutoff issue --- .../src/main/java/org/lwjglb/engine/graph/SceneRender.java | 2 +- .../src/main/java/org/lwjglb/engine/graph/SceneRender.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chapter-12/src/main/java/org/lwjglb/engine/graph/SceneRender.java b/chapter-12/src/main/java/org/lwjglb/engine/graph/SceneRender.java index baa2e68..061e888 100644 --- a/chapter-12/src/main/java/org/lwjglb/engine/graph/SceneRender.java +++ b/chapter-12/src/main/java/org/lwjglb/engine/graph/SceneRender.java @@ -189,7 +189,7 @@ private void updateSpotLight(SpotLight spotLight, String prefix, Matrix4f viewMa } uniformsMap.setUniform(prefix + ".conedir", coneDirection); - uniformsMap.setUniform(prefix + ".conedir", cutoff); + uniformsMap.setUniform(prefix + ".cutoff", cutoff); updatePointLight(pointLight, prefix + ".pl", viewMatrix); } } diff --git a/chapter-13/src/main/java/org/lwjglb/engine/graph/SceneRender.java b/chapter-13/src/main/java/org/lwjglb/engine/graph/SceneRender.java index 853ad03..c6627e9 100644 --- a/chapter-13/src/main/java/org/lwjglb/engine/graph/SceneRender.java +++ b/chapter-13/src/main/java/org/lwjglb/engine/graph/SceneRender.java @@ -202,7 +202,7 @@ private void updateSpotLight(SpotLight spotLight, String prefix, Matrix4f viewMa } uniformsMap.setUniform(prefix + ".conedir", coneDirection); - uniformsMap.setUniform(prefix + ".conedir", cutoff); + uniformsMap.setUniform(prefix + ".cutoff", cutoff); updatePointLight(pointLight, prefix + ".pl", viewMatrix); } }