mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Increase the ratio between shadow range and viewing range
This commit is contained in:
parent
cf650fcaac
commit
26c046a563
@ -94,7 +94,7 @@ void DirectionalLight::update_frustum(const Camera *cam, Client *client, bool fo
|
|||||||
float zNear = cam->getCameraNode()->getNearValue();
|
float zNear = cam->getCameraNode()->getNearValue();
|
||||||
float zFar = getMaxFarValue();
|
float zFar = getMaxFarValue();
|
||||||
if (!client->getEnv().getClientMap().getControl().range_all)
|
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
|
// update splits near and fars
|
||||||
|
Loading…
Reference in New Issue
Block a user