 | TerrainHelperTransformTexture Method |
Modifies the data of a texture.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntaxpublic static void TransformTexture(
float[] data,
float scale,
float bias
)
Public Shared Sub TransformTexture (
data As Single(),
scale As Single,
bias As Single
)
public:
static void TransformTexture(
array<float>^ data,
float scale,
float bias
)
static member TransformTexture :
data : float32[] *
scale : float32 *
bias : float32 -> unit
Parameters
- data
- Type: SystemSingle
The texture data. - scale
- Type: SystemSingle
The scale factor. - bias
- Type: SystemSingle
The bias which is added to the scaled data.
Exceptions
Remarks
All values in data are multiplied by scale and then
bias is added.
See Also