From 1d8866e34ffbfb1d7a9750ad36b6ce0061266f58 Mon Sep 17 00:00:00 2001 From: ahbejarano Date: Sun, 24 Mar 2024 10:05:51 +0100 Subject: [PATCH] Close #12 --- chapter-17/resources/shaders/scene.frag | 3 +-- chapter-18/resources/shaders/scene.frag | 3 +-- chapter-19/resources/shaders/lights.frag | 3 +-- chapter-20/resources/shaders/lights.frag | 3 +-- chapter-21/resources/shaders/lights.frag | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/chapter-17/resources/shaders/scene.frag b/chapter-17/resources/shaders/scene.frag index 6e788c0..2330d23 100644 --- a/chapter-17/resources/shaders/scene.frag +++ b/chapter-17/resources/shaders/scene.frag @@ -183,11 +183,10 @@ void main() { vec4 diffuseSpecularComp = calcDirLight(diffuse, specular, dirLight, outViewPosition, normal); - int cascadeIndex; + int cascadeIndex = 0; for (int i=0; i