cleanup
This commit is contained in:
@@ -76,6 +76,8 @@ namespace SplashEdit.RuntimeCode
|
||||
finalColor += lightContribution;
|
||||
}
|
||||
|
||||
// Clamp to 0.8 to leave headroom for PS1 2x color blending mode,
|
||||
// which doubles vertex colors. Without this cap, bright areas would clip.
|
||||
finalColor.r = Mathf.Clamp(finalColor.r, 0.0f, 0.8f);
|
||||
finalColor.g = Mathf.Clamp(finalColor.g, 0.0f, 0.8f);
|
||||
finalColor.b = Mathf.Clamp(finalColor.b, 0.0f, 0.8f);
|
||||
|
||||
Reference in New Issue
Block a user