1#include <Engine/Scene/PointLight.hpp>
3#include <Engine/Data/RenderParameters.hpp>
8PointLight::PointLight( Entity* entity,
const std::string& name ) :
9 Light( entity, Light::POINT, name ) {
10 getRenderParameters().setVariable(
"light.point.position", m_position );
11 getRenderParameters().setVariable(
"light.point.attenuation.constant", m_attenuation.constant );
12 getRenderParameters().setVariable(
"light.point.attenuation.linear", m_attenuation.linear );
13 getRenderParameters().setVariable(
"light.point.attenuation.quadratic",
14 m_attenuation.quadratic );
hepler function to manage enum as underlying types in VariableSet