5#ifndef __S_LIGHT_H_INCLUDED__
6#define __S_LIGHT_H_INCLUDED__
Class representing a color with four floats.
const c8 *const LightTypeNames[]
Names for light types.
E_LIGHT_TYPE
Enumeration for different types of lights.
@ ELT_POINT
point light, it has a position in space and radiates light in all directions
@ ELT_DIRECTIONAL
directional light, coming from a direction from an infinite distance
@ ELT_SPOT
spot light, it has a position in space, a direction, and a limited cone of influence
@ ELT_COUNT
Only used for counting the elements of this enum.
Everything in the Irrlicht Engine can be found in this namespace.
float f32
32 bit floating point variable.
char c8
8 bit character variable.
structure for holding data describing a dynamic point light.
core::vector3df Attenuation
Attenuation factors (constant, linear, quadratic)
SColorf AmbientColor
Ambient color emitted by the light.
SColorf DiffuseColor
Diffuse color emitted by the light.
core::vector3df Direction
Read-ONLY! Direction of the light.
SColorf SpecularColor
Specular color emitted by the light.
f32 Falloff
The light strength's decrease between Outer and Inner cone.
f32 OuterCone
The angle of the spot's outer cone. Ignored for other lights.
f32 Radius
Read-ONLY! Radius of light. Everything within this radius will be lighted.
f32 InnerCone
The angle of the spot's inner cone. Ignored for other lights.
E_LIGHT_TYPE Type
Read-ONLY! Type of the light. Default: ELT_POINT.
core::vector3df Position
Read-ONLY! Position of the light.
bool CastShadows
Read-ONLY! Does the light cast shadows?