Xors3d Engine
Light types

Defines

#define LIGHT_DIRECTIONAL   1
#define LIGHT_POINT   2
#define LIGHT_SPOT   3

Define Documentation

#define LIGHT_DIRECTIONAL   1

Directional light works like sun. It has not a position or a range, it has direction of light rays and light color only.

#define LIGHT_POINT   2

Point (omni) light works like a light bulb. It has a position, a range and a color, but has not a direction.

#define LIGHT_SPOT   3

Spot light is a cone of light. It starts with an inner angle of light, and then extends towards an outer angle of light (cone angles you may specify by xLightConeAngles() command). This light type has a position, a direction, a range and a color.