1 #include <Engine/Scene/PointLight.hpp>
3 #include <Engine/Data/RenderParameters.hpp>
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 );
18 std::string PointLight::getShaderInclude()
const {