Skip to content

Commit

Permalink
Make shadow render distance not override shader's forced render distance
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Sep 3, 2021
1 parent d600b4f commit 5139306
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private Frustum createShadowFrustum() {
double distance = halfPlaneLength * renderDistanceMultiplier;
String setter = "(set by shader pack)";

if ((renderDistanceMultiplier < 0 && IrisVideoSettings.shadowDistance != 0) || IrisVideoSettings.shadowDistance >= 1) {
if ((renderDistanceMultiplier < 0 && IrisVideoSettings.shadowDistance != 0) || (IrisVideoSettings.shadowDistance >= 1 && (IrisVideoSettings.shadowDistance * 16) <= halfPlaneLength)) {
distance = IrisVideoSettings.shadowDistance * 16;
setter = "(set by user)";
} else if (renderDistanceMultiplier < 0) {
Expand Down

0 comments on commit 5139306

Please sign in to comment.