LandscapeLayerMap Class
Properties
string Path#
Path to the *.lmap file containing landscape map data.
set
Sets a new path to the
*.lmap file containing landscape map data.
set value -
New path to the *.lmap file with landscape map data.
bool Collision#
Value indicating if collision detection is enabled for the landscape layer map.
set
Sets a value indicating if collision detection is enabled for the landscape layer map.
set value -
true to enable collision detection for the landscape layer map, false - to disable it.
bool Intersection#
Value indicating if intersection detection is enabled for the landscape layer map.
set
Sets a value indicating if intersection detection is enabled for the landscape layer map.
set value -
true to enable intersection detection for the landscape layer map, false - to disable it.
bool IntersectionBicubicFilter#
Value indicating if bicubic filtering is enabled for height texture (collision and intersection detection and fetch requests) and normals texture (intersection detection and fetch requests).
set
Sets a value indicating if bicubic filtering is enabled for height texture (collision and intersection detection and fetch requests) and normals texture (intersection detection and fetch requests).
set value -
true to enable bicubic filtering is enabled for height texture (collision and intersection detection and fetch requests) and normals texture (intersection detection and fetch requests), false - to disable it.
bool Culling#
Value indicating if heights data of the layer map is to be used for culling precalculation. In order to define which parts of the terrain are to be rendered a culling test is required. This test is performed on the basis of a precalculated low-detail height map, combining heights data of all landscape layer maps having a significant impact on the result. Precalculation is performed on the CPU side, so processing a large number of landscape layer maps may reduce performance. Moreover, some layer maps may be used as decals (i.e. their impact on the resulting height map is insignificant). For such cases you can simply disable this option to avoid unnecessary calculations.
set
Sets a value indicating if heights data of the layer map is to be used for culling precalculation. In order to define which parts of the terrain are to be rendered a culling test is required. This test is performed on the basis of a precalculated low-detail height map, combining heights data of all landscape layer maps having a significant impact on the result.
Precalculation is performed on the CPU side, so processing a large number of landscape layer maps may reduce performance.
Moreover, some layer maps may be used as decals (i.e. their impact on the resulting height map is insignificant).
For such cases you can simply disable this option to avoid unnecessary calculations.
NoticeDisabling this option for a single
set value -
true to use the layer map for culling, false - to ignore it.
int Order#
Current rendering order for the landscape layer map. A map with a higher order value shall be rendered above the ones with lower ones.
set
Returns a new rendering order for the landscape layer map. A map with a higher order value shall be rendered above the ones with lower ones.
set value -
New rendering order to be set for the landscape layer map.
Two-component vector (X, Y) defining the size of the landscape layer map along X and Y axes, in units.
set
Sets a new size for the landscape layer map.
set value -
Two-component vector (X, Y) defining the size of the landscape layer map along X and Y axes, in units.
float HeightScale#
Returns the current scale factor used for heights data. Height values of landscape layer map are multiplied by this value during terrain rendering.
set
Sets a new scale factor to be used for heights data. Height values of landscape layer map are multiplied by this value during terrain rendering.
set value -
Scale factor used for heights data.
Two-component vector (X, Y) defining the size of the texel of the landscape layer map textures along X and Y axes.
bool IsInit#
Value indicating if the landscape layer map is initialized.
Two-component vector (X, Y) representing landscape map resolution along X and Y axes, in pixels.
Members
LandscapeLayerMap
(
)
#
The LandscapeLayerMap constructor.
UGUID GetGUID
(
)
#
Returns the
GUID of the LandscapeLayerMap node.
Return value
GUID of the LandscapeLayerMap node.
vec2 GetExtremumHeight
(
float precision = 1.0f
)
#
Returns the minimum and maximum height of the landscape layer map as a two-component vector.
Arguments
- float precision - Precision value in the [0.0f, 1.0f] range. The default value is 1.0f (maximum).
Return value
Two-component vector
(X, Y) defining the minimum (
X) and maximum (
Y) height of the landscape layer map.
static int type
(
)
#
Returns the type of the node.
Return value
LandscapeLayerMap type identifier.
ivec2 GetResolution
(
)
#
Returns the current landscape map resolution.
Return value
Two-component vector (X, Y) representing landscape map resolution along X and Y axes, in pixels.