opengl.shaders.lighting: Fix bug with direct light position/direction.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user