Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
aiUVTransform Struct Reference

Defines how an UV channel is transformed. More...

#include <material.h>

Public Member Functions

 aiUVTransform () AI_NO_EXCEPT
 

Public Attributes

ai_real mRotation
 Rotation - in counter-clockwise direction. More...
 
C_STRUCT aiVector2D mScaling
 Scaling on the u and v axes. More...
 
C_STRUCT aiVector2D mTranslation
 Translation on the u and v axes. More...
 

Detailed Description

Defines how an UV channel is transformed.

This is just a helper structure for the AI_MATKEY_UVTRANSFORM key. See its documentation for more details.

Typically you'll want to build a matrix of this information. However, we keep separate scaling/translation/rotation values to make it easier to process and optimize UV transformations internally.

Constructor & Destructor Documentation

◆ aiUVTransform()

aiUVTransform::aiUVTransform ( )
inline

Member Data Documentation

◆ mRotation

ai_real aiUVTransform::mRotation

Rotation - in counter-clockwise direction.

The rotation angle is specified in radians. The rotation center is 0.5f|0.5f. The default value 0.f.

◆ mScaling

C_STRUCT aiVector2D aiUVTransform::mScaling

Scaling on the u and v axes.

The default value is (1|1).

◆ mTranslation

C_STRUCT aiVector2D aiUVTransform::mTranslation

Translation on the u and v axes.

The default value is (0|0).


The documentation for this struct was generated from the following file: