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

Public Member Functions | |
| DistantLight (const Vector &direction=Vector(0, 0,-1), const Color &color=Color(1.0, 1.0, 1.0), double intensity=0.5, double ambientIntensity=0.1) | |
| Constructs directional lightsource by its direction, color, intensity and ambient intensity. | |
| bool | operator== (const DistantLight &other) const |
| void | setDirection (const Vector &) |
| Sets the direction from which the light comes, it goes to the opposite direction. | |
| Vector | getDirection () const |
| Returns the direction from which the light comes, it goes to the opposite direction. | |
| VRS_TYPEINFO (DistantLight, Light) | |
| VRS_SERIALIZABLE (DistantLight) | |
| VRS::DistantLight::DistantLight | ( | const Vector & | direction = Vector(0, 0,-1), |
|
| const Color & | color = Color(1.0, 1.0, 1.0), |
|||
| double | intensity = 0.5, |
|||
| double | ambientIntensity = 0.1 | |||
| ) |
Constructs directional lightsource by its direction, color, intensity and ambient intensity.
Direction is the vector from where the light comes. It goes to the opposite direction.
| bool VRS::DistantLight::operator== | ( | const DistantLight & | other | ) | const |
| void VRS::DistantLight::setDirection | ( | const Vector & | ) |
Sets the direction from which the light comes, it goes to the opposite direction.
| Vector VRS::DistantLight::getDirection | ( | ) | const [inline] |
Returns the direction from which the light comes, it goes to the opposite direction.
| VRS::DistantLight::VRS_TYPEINFO | ( | DistantLight | , | |
| Light | ||||
| ) |
| VRS::DistantLight::VRS_SERIALIZABLE | ( | DistantLight | ) |