Radium Engine  1.5.0
DirLight.cpp
1 #include <Engine/Scene/DirLight.hpp>
2 
3 #include <Engine/Data/RenderParameters.hpp>
4 
5 namespace Ra {
6 namespace Engine {
7 namespace Scene {
8 DirectionalLight::DirectionalLight( Entity* entity, const std::string& name ) :
9  Light( entity, Light::DIRECTIONAL, name ) {
10  getRenderParameters().addParameter( "light.directional.direction", m_direction );
11 }
12 
13 std::string DirectionalLight::getShaderInclude() const {
14  return "Directional";
15 }
16 
17 } // namespace Scene
18 } // namespace Engine
19 } // namespace Ra
Definition: Cage.cpp:3