opengl.shaders.lighting: Fix bug with direct light position/direction.

This commit is contained in:
Rod Kay
2024-02-28 19:57:00 +11:00
parent d807a87cc1
commit 25373dabfe

View File

@@ -36,7 +36,7 @@ apply_Light (light Light,
{
// Directional light.
//
Surface_to_Light = normalize (-Light.Site.xyz);
Surface_to_Light = normalize (Light.Site.xyz);
Attenuation = 1.0; // No attenuation for directional lights.
}
else