Texture |
Real-time applications typically require full UV coordinates. So the use of GenerateUVCoords step is highly recommended. It generates proper UV channels for non-UV mapped objects, as long as an accurate description of how the mapping should look like is given.
public enum TextureMapping
| Member name | Value | Description |
|---|---|---|
| FromUV | 0 |
Coordinates are taken from the an existing UV channel.
The AI_MATKEY_UVWSRC key specifies from the UV channel the texture coordinates are to be taken from since meshes can have more than one UV channel. |
| Sphere | 1 | Spherical mapping |
| Cylinder | 2 | Cylinder mapping |
| Box | 3 | Cubic mapping |
| Plane | 4 | Planar mapping |
| Unknown | 5 | Unknown mapping that is not recognied. |