From cfd7350e998d294deffa9aae5c4c475d92c60194 Mon Sep 17 00:00:00 2001 From: bawat Date: Thu, 28 Nov 2024 09:17:08 +0000 Subject: [PATCH] Update 4-directional-lighting.md Fix missing closing bracket --- getting-started/4-directional-lighting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/getting-started/4-directional-lighting.md b/getting-started/4-directional-lighting.md index 3ef06f0..3ea982e 100644 --- a/getting-started/4-directional-lighting.md +++ b/getting-started/4-directional-lighting.md @@ -25,7 +25,7 @@ void main() { // 0.2 will be the *minimum* light for objects facing away from the sun. You can mess with this value. // The sun/moon position must be normalized. - float NdotL = max(0.2, dot(normal, normalize(shadowLightPosition)); + float NdotL = max(0.2, dot(normal, normalize(shadowLightPosition))); finalColor.rgb *= NdotL; } @@ -41,4 +41,4 @@ Congrats! You now have cool shading on entities. However, take a look at the sky. You may see the sun is a bit... wider than usual. This is because the vertex position for the sky is nonsense. -To fix this, we will need to make another copy `gbuffers_skytextured`, and remove the fog calculation. (Don't forget to remove directional lighting too; you don't want the sun shading itself!) \ No newline at end of file +To fix this, we will need to make another copy `gbuffers_skytextured`, and remove the fog calculation. (Don't forget to remove directional lighting too; you don't want the sun shading itself!)