diff options
author | x2048 <codeforsmile@gmail.com> | 2021-08-12 20:07:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-12 20:07:09 +0200 |
commit | 442e48b84fea511badf108cedc2a6b43d79fd852 (patch) | |
tree | d4ba62bd7398f4e1f820dd19425344588a1fe9db /src/client/shadows/dynamicshadowsrender.h | |
parent | 0709946c75ae6f2257d368714185bed7bee538ba (diff) | |
download | minetest-442e48b84fea511badf108cedc2a6b43d79fd852.tar.gz minetest-442e48b84fea511badf108cedc2a6b43d79fd852.tar.bz2 minetest-442e48b84fea511badf108cedc2a6b43d79fd852.zip |
Move updating shadows outside of RenderingCore::drawAll. (#11491)
Fixes indirect rendering modes such as some 3D modes mentioned in #11437 and undersampled rendering.
Does not fully fix anaglyph 3d mode.
Diffstat (limited to 'src/client/shadows/dynamicshadowsrender.h')
-rw-r--r-- | src/client/shadows/dynamicshadowsrender.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/shadows/dynamicshadowsrender.h b/src/client/shadows/dynamicshadowsrender.h index 52b24a18f..e4b3c3e22 100644 --- a/src/client/shadows/dynamicshadowsrender.h +++ b/src/client/shadows/dynamicshadowsrender.h @@ -73,9 +73,8 @@ public: E_SHADOW_MODE shadowMode = ESM_BOTH); void removeNodeFromShadowList(scene::ISceneNode *node); - void setClearColor(video::SColor ClearColor); - void update(video::ITexture *outputTarget = nullptr); + void drawDebug(); video::ITexture *get_texture() { @@ -112,7 +111,6 @@ private: video::ITexture *shadowMapTextureFinal{nullptr}; video::ITexture *shadowMapTextureDynamicObjects{nullptr}; video::ITexture *shadowMapTextureColors{nullptr}; - video::SColor m_clear_color{0x0}; std::vector<DirectionalLight> m_light_list; std::vector<NodeToApply> m_shadow_node_array; |