mirror of
https://github.com/edubart/otclient.git
synced 2025-12-02 16:06:51 +01:00
Lightning is not additive anymore
Now otclient lightning may look like more tibia lights, before this too many lights together would increase brightness a lot, this won't happen anymore in cards with OpenGL 1.4 or newer
This commit is contained in:
@@ -126,6 +126,7 @@ void LightView::draw(const Rect& dest, const Rect& src)
|
||||
m_lightbuffer->bind();
|
||||
g_painter->setCompositionMode(Painter::CompositionMode_Replace);
|
||||
drawGlobalLight(m_globalLight);
|
||||
g_painter->setBlendEquation(Painter::BlendEquation_Max);
|
||||
g_painter->setCompositionMode(Painter::CompositionMode_Add);
|
||||
for(const LightSource& source : m_lightMap)
|
||||
drawLightSource(source.center, source.color, source.radius);
|
||||
|
||||
Reference in New Issue
Block a user