diff options
author | x2048 <codeforsmile@gmail.com> | 2022-05-21 16:49:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-21 16:49:30 +0200 |
commit | dc45b85a543b4c8ad72f69a554ecfe7f0a60c533 (patch) | |
tree | 348a20f17c19d8e886ca669e339a7f4875aa7778 /src/client/shadows | |
parent | a4ef62f5b215fe0f23e3e50672f1538854db4ed9 (diff) | |
download | minetest-dc45b85a543b4c8ad72f69a554ecfe7f0a60c533.tar.gz minetest-dc45b85a543b4c8ad72f69a554ecfe7f0a60c533.tar.bz2 minetest-dc45b85a543b4c8ad72f69a554ecfe7f0a60c533.zip |
Improve shadow filters (#12195)
* Rewrite shadow filtering for the new distortion
* Calculate penumbra radius using a single sample
* Avoid peter-panning effect due to filtering of short shadows
* Add adaptive filter quality for soft shadows
* Avoid sharp shadows on surfaces without normals (e.g. plants)
* Increase default and maximum soft shadow radius
* Make line numbers in shader errors match the code
Diffstat (limited to 'src/client/shadows')
-rw-r--r-- | src/client/shadows/dynamicshadowsrender.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/shadows/dynamicshadowsrender.cpp b/src/client/shadows/dynamicshadowsrender.cpp index 07dc6daf2..c13cfe252 100644 --- a/src/client/shadows/dynamicshadowsrender.cpp +++ b/src/client/shadows/dynamicshadowsrender.cpp @@ -670,6 +670,7 @@ std::string ShadowRenderer::readShaderFile(const std::string &path) std::string prefix; if (m_shadow_map_colored) prefix.append("#define COLORED_SHADOWS 1\n"); + prefix.append("#line 0\n"); std::string content; fs::ReadFile(path, content); |