Radium Engine  1.5.0
PointLight.cpp
1 #include <Engine/Scene/PointLight.hpp>
2 
3 #include <Engine/Data/RenderParameters.hpp>
4 
5 namespace Ra {
6 namespace Engine {
7 namespace Scene {
8 PointLight::PointLight( Entity* entity, const std::string& name ) :
9  Light( entity, Light::POINT, name ) {
10  getRenderParameters().addParameter( "light.point.position", m_position );
11  getRenderParameters().addParameter( "light.point.attenuation.constant",
12  m_attenuation.constant );
13  getRenderParameters().addParameter( "light.point.attenuation.linear", m_attenuation.linear );
14  getRenderParameters().addParameter( "light.point.attenuation.quadratic",
15  m_attenuation.quadratic );
16 }
17 
18 std::string PointLight::getShaderInclude() const {
19  return "Point";
20 }
21 
22 } // namespace Scene
23 } // namespace Engine
24 } // namespace Ra
Definition: Cage.cpp:3