#include <Light.h>
|
| SpotLight (const Vector3d &position, const Vector3d &direction, const double openingAngle, const double penumbraAngle, const double radius, const Vector3d &color, double intensity, bool isVisible) |
| SpotLight Creates a spot light. The spotlight is a light emitting into a cone of directions. More...
|
|
| SpotLight ()=default |
|
| Light (LightType type, const Vector3d &color, double intensity, bool isVisible) |
|
| Light ()=default |
|
virtual | ~Light ()=default |
|
Definition at line 120 of file Light.h.
◆ SpotLight() [1/2]
core::SpotLight::SpotLight |
( |
const Vector3d & |
position, |
|
|
const Vector3d & |
direction, |
|
|
const double |
openingAngle, |
|
|
const double |
penumbraAngle, |
|
|
const double |
radius, |
|
|
const Vector3d & |
color, |
|
|
double |
intensity, |
|
|
bool |
isVisible |
|
) |
| |
SpotLight Creates a spot light. The spotlight is a light emitting into a cone of directions.
- Parameters
-
position | The center of the spotlight, in world-space |
direction | Main emission direction of the spot |
openingAngle | Full opening angle (in degree) of the spot; outside of this cone is no illumination |
penumbraAngle | Size (angle in degree) of the "penumbra", the region between the rim (of the illumination cone) and full intensity of the spot; should be smaller than half of 'openingAngle' |
radius | The size of the spotlight, the radius of a disk with normal 'direction' |
color | Light source RGB color |
intensity | Amount of light emitted |
isVisible | Whether the light can be directly seen |
Definition at line 60 of file Light.cpp.
◆ SpotLight() [2/2]
core::SpotLight::SpotLight |
( |
| ) |
|
|
default |
◆ _direction
◆ _openingAngle
double core::SpotLight::_openingAngle |
◆ _penumbraAngle
double core::SpotLight::_penumbraAngle |
◆ _position
◆ _radius
double core::SpotLight::_radius |
The documentation for this class was generated from the following files: