Shader attributes and retained UV transform components for a material texture. More...
#include <GLTFLoader.hpp>
Public Member Functions | |
| void | SetUVTransform (const float2 &Scale, float Rotation, const float2 &Offset) |
Public Attributes | |
| TextureShaderAttribs | ShaderAttribs |
| Attributes used for rendering. Direct matrix edits do not update UVScale or UVRotation. | |
| float2 | UVScale {1, 1} |
| UV scale retained by the loader or SetUVTransform(). | |
| float | UVRotation = 0 |
| Counter-clockwise UV rotation in radians. Angles are not wrapped. | |
Shader attributes and retained UV transform components for a material texture.
|
inline |
Sets the complete UV transform: scale, counter-clockwise rotation in radians, then offset. The offset is stored in ShaderAttribs.UBias/VBias.