From 37b791342abd722c13621220c461bc5dffbe84ab Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sat, 7 Sep 2024 11:34:14 +0300 Subject: [PATCH] lighting calculation bugfix --- texture.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texture.frag b/texture.frag index e0b6333..ae5330c 100755 --- a/texture.frag +++ b/texture.frag @@ -133,9 +133,9 @@ void main(){ float shadow = getShadow(i); diffuseCol *= (1.0 - shadow); } - - finalColor *= vec4(diffuseCol + specularCol, 1); } + + finalColor *= vec4(diffuseCol + specularCol, 1); } float brightness = dot(finalColor.rgb, vec3(0.2126, 0.7152, 0.0722));