![]() | |
Height |
public class HeightMapSurfaceNode : ModelNode
The HeightMapSurfaceNode type exposes the following members.
Name | Description | |
---|---|---|
![]() | HeightMapSurfaceNode(String) | Initializes a new instance of the HeightMapSurfaceNode class |
![]() | HeightMapSurfaceNode(Vector3, Vector3, Single, Boolean, Single, Single, String) | Initializes a new instance of the HeightMapSurfaceNode class |
Name | Description | |
---|---|---|
![]() | CenterPosition | Center position of the height map surface Default value is (0, 0, 0). |
![]() | HeightData | 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). |
![]() | HeightDataMaxValue | Gets the maximum value from the HeightData array. |
![]() | HeightDataMinValue | Gets the minimum value from the HeightData array. |
![]() | MaxTextureHeight | Used to define custom height range for texture coordinates. Applicable only if UseHeightValuesAsTextureCoordinates is set to true. Default value is Single.NaN (disabled). |
![]() | MinTextureHeight | Used to define custom height range for texture coordinates. Applicable only if UseHeightValuesAsTextureCoordinates is set to true. Default value is Single.NaN (disabled). |
![]() | Size | 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) |
![]() | UseHeightValuesAsTextureCoordinates | 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. |
Name | Description | |
---|---|---|
![]() ![]() | CreateHeightDataFromImageData | CreateHeightDataFromImageData method creates a two dimensional array from the specified imageData that can be used for the HeightData property. The supported image formats are R8G8B8A8Unorm, B8G8R8A8Unorm (32 bit where height value is average value of red, green and blue color values) and R8Unorm (8 bit grayscale). |
![]() ![]() | CreateHeightMapSurfaceMesh | |
![]() | OnUpdate | (Overrides ModelNodeOnUpdate) |
![]() | UpdateMesh |
UpdateMesh method recreates the mesh based on the current object properties.
The method should be overriden in the derived class that provides its own mesh generation.
(Overrides ModelNodeUpdateMesh) |
[Missing <remarks> documentation for "T:Ab4d.SharpEngine.SceneNodes.HeightMapSurfaceNode"]