TerrainClipmapCellSizes Property |
Namespace: DigitalRune.Graphics
This array contains MaxNumberOfLevels elements - where only the first NumberOfLevels elements are used.
The first element CellSizes[0] has to be set. All other entries can contain NaN values, which means that subsequent cell sizes are chosen automatically. By default, each cell size is twice the cell size of the previous level.
Example: The array contains the values { 1, NaN, NaN, NaN, NaN, ... }. In this case the first level uses a cell size of 1 unit. The second level has a cell size of 2 units. The third level has a cell size of 4 units per cell. Etc.
The default terrain renderers ( TerrainClipmapRenderer and TerrainRenderer) use only CellSizes[0] for the BaseClipmap (all other cell sizes are treated as if they are NaN or twice the size of the previous level). The DetailClipmap can have user-defined cell sizes for all levels.
Invalidate has to be called if the elements in this array are changed!