| TerrainHelperSmoothTexture Method (Vector4, Int32, Int32, Single) |
Smooths the texture.
Namespace: DigitalRune.GraphicsAssembly: 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
)
Public Shared Sub SmoothTexture (
data As Vector4(),
textureWidth As Integer,
textureHeight As Integer,
smoothness As Single
)
public:
static void SmoothTexture(
array<Vector4>^ data,
int textureWidth,
int textureHeight,
float smoothness
)
static member SmoothTexture :
data : Vector4[] *
textureWidth : int *
textureHeight : int *
smoothness : float32 -> unit
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 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