Skip to content

Commit

Permalink
Increase the ratio between shadow range and viewing range
Browse files Browse the repository at this point in the history
  • Loading branch information
x2048 committed Apr 2, 2022
1 parent cf650fc commit 26c046a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/shadows/dynamicshadows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26c046a

Please sign in to comment.