Click or drag to resize
Ab4d.SharpEngine logo

HeightMapSurfaceNode Properties

The HeightMapSurfaceNode type exposes the following members.

Properties
 NameDescription
Public propertyCenterPosition Center position of the height map surface Default value is (0, 0, 0).
Public propertyHeightData 2D array defining the height data. The dimensions of array also determine the size of the mesh (scaled by the X and Z components of the Size property). If no height data is provided, a flat surface (a plane) is generated. Default value is null (no height data available).
Public propertyHeightDataMaxValue Gets the maximum value from the HeightData array.
Public propertyHeightDataMinValue Gets the minimum value from the HeightData array.
Public propertyMaxTextureHeight Used to define custom height range for texture coordinates. Applicable only if UseHeightValuesAsTextureCoordinates is set to true. Default value is Single.NaN (disabled).
Public propertyMinTextureHeight Used to define custom height range for texture coordinates. Applicable only if UseHeightValuesAsTextureCoordinates is set to true. Default value is Single.NaN (disabled).
Public propertySize Size of the surface. X and Z components scale the 2D shape's width and height, while Y component scales the height values. Default value is (1, 1, 1)
Public propertyUseHeightValuesAsTextureCoordinates Use height values to generate texture coordinates. If disabled, texture coordinates are generated so that the texture is aligned with the dimensions of the surface. If enabled, texture coordinates are based on height value, which is useful for gradient-based textures. Default value is false.
Top
See Also