Click or drag to resize
AB4D logo

HeightMapVisual3DCreateHeightTextureFromGradient Method

This methods created a height texture from the height data and specified gradient and set it as the HeightMap Material property. When is true, then one dimensional gradient texture is created; when false then two dimensional texture with color for each data value is created.

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public void CreateHeightTextureFromGradient(
	LinearGradientBrush gradient
)

Parameters

gradient  LinearGradientBrush
gradient as LinearGradientBrush
Remarks

This methods created a height texture from the height data and specified gradient and set it as the HeightMap Material property.

It is also possible to create height texture manually with static methods on HeightMapMesh3D.

See Also