mirror of
https://github.com/edubart/otclient.git
synced 2025-12-26 09:47:11 +01:00
Old light method restored, it can be changed in lua now
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
|
||||
#include "declarations.h"
|
||||
#include <framework/graphics/declarations.h>
|
||||
#include <framework/graphics/painter.h>
|
||||
#include "thingtype.h"
|
||||
|
||||
struct LightSource {
|
||||
@@ -44,11 +45,14 @@ public:
|
||||
void resize(const Size& size);
|
||||
void draw(const Rect& dest, const Rect& src);
|
||||
|
||||
void setBlendEquation(Painter::BlendEquation blendEquation) { m_blendEquation = blendEquation; }
|
||||
|
||||
private:
|
||||
void drawGlobalLight(const Light& light);
|
||||
void drawLightSource(const Point& center, const Color& color, int radius);
|
||||
TexturePtr generateLightBubble(float centerFactor);
|
||||
|
||||
Painter::BlendEquation m_blendEquation;
|
||||
TexturePtr m_lightTexture;
|
||||
FrameBufferPtr m_lightbuffer;
|
||||
Light m_globalLight;
|
||||
|
||||
Reference in New Issue
Block a user