lighting calculation bugfix

This commit is contained in:
devZoGok
2024-09-07 11:34:14 +03:00
parent 44afb4409c
commit 37b791342a
+2 -2
View File
@@ -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));