terrain_chunk
Determines the chunk size of terrain,
in
mesh squares
per row.
The smaller this value, the more chunks a terrain is split into.
Range:
8 .. 256 (default = 32 for
a chunk size of 33x33 vertices resp. 32x32 squares).
Type:
var
Remarks:
-
This variable must be set before loading the terrain.
- Smaller chunks sizes allow more dynamic lights on the terrain (up to 8 per
chunk). Too-small chunk sizes however can reduce the frame rate.
-
For avoiding unchunked mesh stripes, terrain_chunk should be a multiple of 8, and the number of terrain mesh squares in x and y direction should be a multiple of the terrain_chunk value.
Example:
terrain_chunk = 8; // small chunks
level_load("ocean.hmp");
See also:
Terrain, terrain_lod, detail_size
► latest
version online