aboutsummaryrefslogtreecommitdiff
path: root/src/client/shadows/dynamicshadows.h
diff options
context:
space:
mode:
authorDmitry Kostenko <codeforsmile@gmail.com>2022-02-20 00:04:48 +0100
committerx2048 <codeforsmile@gmail.com>2022-03-07 23:45:26 +0100
commit4801bdf45aaaa9238bc52a157e1d25c9d477d81a (patch)
tree7d557eda80e935b62129f40ae683e7685b28bc8f /src/client/shadows/dynamicshadows.h
parent25c1974e0d734b6e80d128b325e8e6b506a7401b (diff)
downloadminetest-4801bdf45aaaa9238bc52a157e1d25c9d477d81a.tar.gz
minetest-4801bdf45aaaa9238bc52a157e1d25c9d477d81a.tar.bz2
minetest-4801bdf45aaaa9238bc52a157e1d25c9d477d81a.zip
Correct normal bias for entities
Remove use of magic constants. Apply cameraOffset Calculate distance projected on SM plane
Diffstat (limited to 'src/client/shadows/dynamicshadows.h')
-rw-r--r--src/client/shadows/dynamicshadows.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/shadows/dynamicshadows.h b/src/client/shadows/dynamicshadows.h
index d8be66be8..03dd36014 100644
--- a/src/client/shadows/dynamicshadows.h
+++ b/src/client/shadows/dynamicshadows.h
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_bloated.h"
#include <matrix4.h>
#include "util/basic_macros.h"
+#include "constants.h"
class Camera;
class Client;
@@ -67,7 +68,7 @@ public:
/// Gets the light's far value.
f32 getMaxFarValue() const
{
- return farPlane;
+ return farPlane * BS;
}