From 442e48b84fea511badf108cedc2a6b43d79fd852 Mon Sep 17 00:00:00 2001 From: x2048 Date: Thu, 12 Aug 2021 20:07:09 +0200 Subject: 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. --- src/client/shadows/dynamicshadowsrender.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/client/shadows/dynamicshadowsrender.h') 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 m_light_list; std::vector m_shadow_node_array; -- cgit v1.2.3