1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Factor shadow constants out of MainShaderConstantSetter

This commit is contained in:
sfan5 2024-02-20 10:38:29 +01:00
parent 5da18d34ba
commit e9ab5bc223
6 changed files with 118 additions and 81 deletions

View file

@ -1495,6 +1495,8 @@ bool Game::createClient(const GameStartData &start_data)
&m_flags.force_fog_off, &runData.fog_range, client);
shader_src->addShaderConstantSetterFactory(scsf);
ShadowRenderer::preInit(shader_src);
// Update cached textures, meshes and materials
client->afterContentReceived();