Radium Engine  1.5.20
Loading...
Searching...
No Matches
DirLight.cpp
1#include <Engine/Scene/DirLight.hpp>
2
3#include <Engine/Data/RenderParameters.hpp>
4
5namespace Ra {
6namespace Engine {
7namespace Scene {
8DirectionalLight::DirectionalLight( Entity* entity, const std::string& name ) :
9 Light( entity, Light::DIRECTIONAL, name ) {
10 getRenderParameters().setVariable( "light.directional.direction", m_direction );
11}
12
13std::string DirectionalLight::getShaderInclude() const {
14 return "Directional";
15}
16
17} // namespace Scene
18} // namespace Engine
19} // namespace Ra
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3