1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-16 01:45:36 +02: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:
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

@@ -51,17 +51,11 @@ void shadowScreenQuadCB::OnSetConstants(
video::IMaterialRendererServices *services, s32 userData)
{
s32 TextureId = 0;
services->setPixelShaderConstant(
services->getPixelShaderConstantID("ShadowMapClientMap"),
&TextureId, 1);
m_sm_client_map_setting.set(&TextureId, services);
TextureId = 1;
services->setPixelShaderConstant(
services->getPixelShaderConstantID("ShadowMapClientMapTraslucent"),
&TextureId, 1);
m_sm_client_map_trans_setting.set(&TextureId, services);
TextureId = 2;
services->setPixelShaderConstant(
services->getPixelShaderConstantID("ShadowMapSamplerdynamic"),
&TextureId, 1);
m_sm_dynamic_sampler_setting.set(&TextureId, services);
}