|
Colobot
|
Properties of light in 3D scene. More...
#include <light.h>
Public Member Functions | |
| Light () | |
| Constructor; calls LoadDefault() | |
| void | LoadDefault () |
| Loads default values. | |
Public Attributes | |
| LightType | type |
| Type of light source. | |
| Color | ambient |
| Color of ambient light. | |
| Color | diffuse |
| Color of diffuse light. | |
| Color | specular |
| Color of specular light. | |
| Math::Vector | position |
| Position in world space (for point & spot lights) | |
| Math::Vector | direction |
| Direction in world space (for directional & spot lights) | |
| float | attenuation0 |
| Constant attenuation factor. | |
| float | attenuation1 |
| Linear attenuation factor. | |
| float | attenuation2 |
| Quadratic attenuation factor. | |
| float | spotAngle |
| Angle of spotlight cone (0-PI/2 radians) | |
| float | spotIntensity |
| Intensity of spotlight (0 = uniform; 128 = most intense) | |
Properties of light in 3D scene.
This structure was created as analog to DirectX's D3DLIGHT.
1.8.5