mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
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:
parent
0709946c75
commit
442e48b84f
7 changed files with 66 additions and 67 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue