From 26c046a563f686f9309055f5d566a92d436eed7e Mon Sep 17 00:00:00 2001 From: Dmitry Kostenko Date: Sat, 2 Apr 2022 10:39:43 +0200 Subject: Increase the ratio between shadow range and viewing range --- src/client/shadows/dynamicshadows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/shadows') diff --git a/src/client/shadows/dynamicshadows.cpp b/src/client/shadows/dynamicshadows.cpp index 2995ec205..ddec3a5d5 100644 --- a/src/client/shadows/dynamicshadows.cpp +++ b/src/client/shadows/dynamicshadows.cpp @@ -94,7 +94,7 @@ void DirectionalLight::update_frustum(const Camera *cam, Client *client, bool fo float zNear = cam->getCameraNode()->getNearValue(); float zFar = getMaxFarValue(); if (!client->getEnv().getClientMap().getControl().range_all) - zFar = MYMIN(zFar, client->getEnv().getClientMap().getControl().wanted_range * BS); + zFar = MYMIN(zFar, client->getEnv().getClientMap().getControl().wanted_range * BS * 1.5); /////////////////////////////////// // update splits near and fars -- cgit v1.2.3