mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -28,17 +28,9 @@ void ShadowDepthShaderCB::OnSetConstants(
|
|||
lightMVP *= driver->getTransform(video::ETS_VIEW);
|
||||
lightMVP *= driver->getTransform(video::ETS_WORLD);
|
||||
|
||||
services->setVertexShaderConstant(
|
||||
services->getPixelShaderConstantID("LightMVP"),
|
||||
lightMVP.pointer(), 16);
|
||||
|
||||
services->setVertexShaderConstant(
|
||||
services->getPixelShaderConstantID("MapResolution"), &MapRes, 1);
|
||||
services->setVertexShaderConstant(
|
||||
services->getPixelShaderConstantID("MaxFar"), &MaxFar, 1);
|
||||
|
||||
m_light_mvp_setting.set(lightMVP.pointer(), services);
|
||||
m_map_resolution_setting.set(&MapRes, services);
|
||||
m_max_far_setting.set(&MaxFar, services);
|
||||
s32 TextureId = 0;
|
||||
services->setPixelShaderConstant(
|
||||
services->getPixelShaderConstantID("ColorMapSampler"), &TextureId,
|
||||
1);
|
||||
m_color_map_sampler_setting.set(&TextureId, services);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue