IModelTexture
Description
- Derived from
- Extended by
-
IModelTextureDynamic
ModelTexture abstract
Base interface for classes that represent textures for 3D models.
IModelTexture objects act as resource handles and produce ITexture2D resource objects.
Public / Methods
ReadElevation
Reads elevation data.
- IOException
-
If an I/O error has occurred while reading the pixel data.
ReadPixels
Reads pixel data.
- IOException
-
If an I/O error has occurred while reading the pixel data.
ReadTexels
Reads texture data.
- IOException
-
If an I/O error has occurred while reading the texture data.
Swizzle
Swizzles the color channels of this texture.
For each channel of the resulting texture, one of the following swizzle operands may be specified:
-
-5 : use constant minimum value
-
-4 : use inverse alpha channel of input
-
-3 : use inverse blue channel of input
-
-2 : use inverse green channel of input
-
-1 : use inverse red channel of input
-
0 : use grayscale intensity of input
-
1 : use red channel of input
-
2 : use green channel of input
-
3 : use blue channel of input
-
4 : use alpha channel of input
-
5 : use constant maximum value
Extensions
NormalMap
Interprets this model texture as a bump map and computes a normal map from it.
Black pixels lie in the XY plane (see figure), white pixels are at the given height opt. The height is specified relative to the size of this texture (i.e. maximum of width and height), e.g. a value of 1
would turn the cuboid below into a cube.
............. .: .: Z+ . : . : | . +--------.--+-- X+ |. / . / ............. / : / : / :/ :/ +-----------+ / Y+