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.
This commit is contained in:
x2048
2021-08-12 20:07:09 +02:00
committed by GitHub
parent 0709946c75
commit 442e48b84f
7 changed files with 66 additions and 67 deletions

View File

@@ -73,9 +73,8 @@ class ShadowRenderer
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 @@ class ShadowRenderer
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;