3#include "scene/Scene.hpp"
5#include "renderers/LightRenderer.hpp"
6#include "scene/lights/Light.hpp"
7#include "scene/lights/PointLight.hpp"
8#include "scene/lights/DirectionalLight.hpp"
9#include "scene/lights/SpotLight.hpp"
29 void updateCameraInfos(
const glm::mat4 & viewMatrix,
const glm::mat4 & projMatrix);
54 glm::mat4
_view = glm::mat4(1.0f);
55 glm::mat4
_proj = glm::mat4(1.0f);
Visualize lights as colored wireframe objects.
Definition: DebugLightRenderer.hpp:17
glm::mat4 _view
Cached camera view matrix.
Definition: DebugLightRenderer.hpp:54
const Mesh * _cone
Spot light supporting geometry.
Definition: DebugLightRenderer.hpp:49
const Mesh * _arrow
Spot light supporting geometry.
Definition: DebugLightRenderer.hpp:50
void draw(const SpotLight *light) override
Definition: DebugLightRenderer.cpp:16
Program * _program
Light mesh shader.
Definition: DebugLightRenderer.hpp:52
const Mesh * _sphere
Point light supporting geometry.
Definition: DebugLightRenderer.hpp:48
glm::mat4 _proj
Cached camera projection matrix.
Definition: DebugLightRenderer.hpp:55
void updateCameraInfos(const glm::mat4 &viewMatrix, const glm::mat4 &projMatrix)
Definition: DebugLightRenderer.cpp:11
A directional light, where all light rays have the same direction.
Definition: DirectionalLight.hpp:13
Base structure of a per-light specialized renderer.
Definition: LightRenderer.hpp:13
Represents a geometric mesh composed of vertices, other attributes and triangles.
Definition: Mesh.hpp:15
An omnidirectional punctual light, where light is radiating in all directions from a single point in ...
Definition: PointLight.hpp:15
Represents a group of shaders used for rendering.
Definition: Program.hpp:31
A spotlight, where light rays in a given cone are radiating from a single point in space....
Definition: SpotLight.hpp:13