diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-20 16:38:44 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-03-20 16:38:44 +1100 |
commit | a096fa3ffc3627ace2d858b61456e578fb7bc25a (patch) | |
tree | 49b4604817fd60c7cb911e2e69b5acae0c0ad514 /source/rendering | |
parent | 1415743545db573c227600332ff498bad4121d8e (diff) |
Update StarWorldPainter.cpp
Diffstat (limited to 'source/rendering')
-rw-r--r-- | source/rendering/StarWorldPainter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/rendering/StarWorldPainter.cpp b/source/rendering/StarWorldPainter.cpp index c55f372..5d33182 100644 --- a/source/rendering/StarWorldPainter.cpp +++ b/source/rendering/StarWorldPainter.cpp @@ -83,6 +83,7 @@ void WorldPainter::render(WorldRenderData& renderData, function<bool()> lightWai LogMap::set("client_render_world_async_light_wait", strf(u8"{:05d}\u00b5s", Time::monotonicMicroseconds() - start)); } + m_renderer->setEffectParameter("lightMapEnabled", !renderData.isFullbright); if (renderData.isFullbright) { m_renderer->setEffectTexture("lightMap", Image::filled(Vec2U(1, 1), { 255, 255, 255, 255 }, PixelFormat::RGB24)); m_renderer->setEffectParameter("lightMapMultiplier", 1.0f); |