max_lights
Maxium number of dynamic lights that
can be visible at the same time.
Range:
2 .. 8 A6
2 .. unlimited (default: 100) A7 C
Type:
var
Remarks:
- If the level contains blocks, it must be compiled with [Create
Meshes] for using
more than 8 lights.
-
Not more than 8 dynamic lights can influence a single model, block, or terrain
chunk. The light influence ranges can be adjusted through d3d_lightres.
- This variable must be set in the first frame before loading the level.
-
All dynamic lights are clipped against the light_view frustum. If the active view is different to the predefined camera view, the light_view pointer must be set to the active view, or to NULL when there are several active views and the lights must not be clipped.
Example:
void main()
{
max_lights = 20;
level_load("dungeon.wmb");
...
See also:
lightrange, sun_light,
light_view,
d3d_lightres
► latest
version online