Click or drag to resize
DigitalRuneTerrainHelperSmoothTexture Method (Vector4, Int32, Int32, Single)
Smooths the texture.

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public static void SmoothTexture(
	Vector4[] data,
	int textureWidth,
	int textureHeight,
	float smoothness
)

Parameters

data
Type: Vector4
The texture data of mipmap level 0.
textureWidth
Type: SystemInt32
The width of the texture.
textureHeight
Type: SystemInt32
The height of the texture.
smoothness
Type: SystemSingle
The smoothness in the range [0, ∞). (0 means no smoothing. Values greater than 0 means more smoothing.)
Exceptions
ExceptionCondition
ArgumentNullExceptiondata is .
Remarks
Use this method if the height map was loaded from an 8-bit image. 8-bit values are usually insufficient to represent smooth surfaces. This method removes non-smooth terrain parts caused by 8-bit quantization.
See Also