Diligent Engine
Loading...
Searching...
No Matches
Diligent::GLTF::Material::TextureAttribs Struct Reference

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.

Detailed Description

Shader attributes and retained UV transform components for a material texture.

Member Function Documentation

◆ SetUVTransform()

void Diligent::GLTF::Material::TextureAttribs::SetUVTransform ( const float2 & Scale,
float Rotation,
const float2 & Offset )
inline

Sets the complete UV transform: scale, counter-clockwise rotation in radians, then offset. The offset is stored in ShaderAttribs.UBias/VBias.