4 #include <entitymoveable.h>
6 #include "renderpass.h"
28 Light(QColor color,
float intensity,
float x,
float y,
float z);
30 void scale(
float value);
41 void reset()
override;
45 static GLuint vaoId, vboId;
46 static unsigned char instanceCounter;
48 static void passToGPU();
RenderPass::VaoChannel & getVaoOutput()
Returns a VaoChannel containing a geometry representation of the light.
Definition: light.cpp:33
float z
The z coordinate of the entity's location.
Definition: entity.h:13
QColor color
The lightcolor.
Definition: light.h:13
void reset() override
reset this lights intensity and position with parent class reset
Definition: light.cpp:67
Stores information about a light.
Definition: light.h:11
float y
The y coordinate of the entity's location.
Definition: entity.h:12
This channel is used to link geometry.
Definition: renderpass.h:182
Complements the Entity with a possibility to define and edit a local coordinate system.
Definition: entitymoveable.h:11
float x
The x coordinate of the entity's location.
Definition: entity.h:11
Light()
Creates a light at the world origin.
Definition: light.cpp:7
float intensity
The light's intensity.
Definition: light.h:14
void scale(float value)
Scales the object around the local origin.
Definition: light.cpp:29