diff options
author | x2048 <codeforsmile@gmail.com> | 2021-10-01 16:21:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 16:21:53 +0200 |
commit | 982e03f60dc95cb2605a4a1c6520b604f85dd1d0 (patch) | |
tree | 748a4763dea169f7e983a602a1fc7d2e031c9849 /src | |
parent | 21113ad4105dd3fb181b3d0638b907af94a352ab (diff) | |
download | minetest-982e03f60dc95cb2605a4a1c6520b604f85dd1d0.tar.gz minetest-982e03f60dc95cb2605a4a1c6520b604f85dd1d0.tar.bz2 minetest-982e03f60dc95cb2605a4a1c6520b604f85dd1d0.zip |
Improvements to colored shadows (#11516)
Diffstat (limited to 'src')
-rw-r--r-- | src/client/clientmap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/clientmap.cpp b/src/client/clientmap.cpp index 7cde085c8..1a024e464 100644 --- a/src/client/clientmap.cpp +++ b/src/client/clientmap.cpp @@ -461,7 +461,10 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass) layer.Texture = shadow->get_texture(); layer.TextureWrapU = video::E_TEXTURE_CLAMP::ETC_CLAMP_TO_EDGE; layer.TextureWrapV = video::E_TEXTURE_CLAMP::ETC_CLAMP_TO_EDGE; - layer.TrilinearFilter = true; + // Do not enable filter on shadow texture to avoid visual artifacts + // with colored shadows. + // Filtering is done in shader code anyway + layer.TrilinearFilter = false; } driver->setMaterial(material); ++material_swaps; |