| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/pointlight.h>

Public Member Functions | |
| PointLight (const Vector &pos=Vector(0, 0, 0), const Color &color=Color::white, double intensity=0.5, double ambientIntensity=0.1, double const_attenuation=1.0, double linear_attenuation=0.0, double quadratic_attenuation=0.0) | |
| void | setPosition (const Vector &) |
| Vector | getPosition () const |
| void | setConstantAttenuation (double) |
| void | setLinearAttenuation (double) |
| void | setQuadraticAttenuation (double) |
| double | getConstantAttenuation () const |
| double | getLinearAttenuation () const |
| double | getQuadraticAttenuation () const |
| VRS_TYPEINFO (PointLight, Light) | |
| VRS_SERIALIZABLE (PointLight) | |
| VRS::PointLight::PointLight | ( | const Vector & | pos = Vector(0, 0, 0), |
|
| const Color & | color = Color::white, |
|||
| double | intensity = 0.5, |
|||
| double | ambientIntensity = 0.1, |
|||
| double | const_attenuation = 1.0, |
|||
| double | linear_attenuation = 0.0, |
|||
| double | quadratic_attenuation = 0.0 | |||
| ) |
A lightsource that is located at a point and emits light to all directions.
| void VRS::PointLight::setPosition | ( | const Vector & | ) |
| Vector VRS::PointLight::getPosition | ( | void | ) | const [inline] |
| void VRS::PointLight::setConstantAttenuation | ( | double | ) |
| void VRS::PointLight::setLinearAttenuation | ( | double | ) |
| void VRS::PointLight::setQuadraticAttenuation | ( | double | ) |
| double VRS::PointLight::getConstantAttenuation | ( | ) | const [inline] |
| double VRS::PointLight::getLinearAttenuation | ( | ) | const [inline] |
| double VRS::PointLight::getQuadraticAttenuation | ( | ) | const [inline] |
Light attenuation coefficients. Control how the intensity of the light decreases as distance from the light increases. By default, the constant attenuation is set to 1, the linear attenuation is set to 0, the quadratic attenuation is set to 0.
| VRS::PointLight::VRS_TYPEINFO | ( | PointLight | , | |
| Light | ||||
| ) |
| VRS::PointLight::VRS_SERIALIZABLE | ( | PointLight | ) |