Skip to content

Commit

Permalink
Clamp directional light intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Jan 10, 2021
1 parent e94525c commit 9a9ecbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void OnChangedSomeColorsThisFrame()
foreach ((DirectionalLight directionalLight, Light light) in _directionalLights)
{
light.color = directionalLight.color;
light.intensity = directionalLight.intensity * 0.5f;
light.intensity = Mathf.Clamp01(directionalLight.intensity);
}
}
}
Expand Down

0 comments on commit 9a9ecbf

Please sign in to comment.