5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
22 static constexpr const char*
TypeName =
"ExtensionKhrTextureTransform";
42 std::vector<double>
scale = {1, 1};
61 accum += int64_t(
sizeof(
double) * this->offset.capacity());
62 accum += int64_t(
sizeof(
double) * this->scale.capacity());
Classes for working with glTF models.
glTF extension that enables shifting and scaling UV coordinates on a per-texture basis
static constexpr const char * TypeName
The original name of this type.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
double rotation
Rotate the UVs by this many radians counter-clockwise around the origin.
static constexpr const char * ExtensionName
The official name of the extension. This should be the same as its key in the extensions object.
std::optional< int64_t > texCoord
Overrides the textureInfo texCoord value if supplied, and if this extension is supported.
std::vector< double > scale
The scale factor applied to the components of the UV coordinates.
std::vector< double > offset
The offset of the UV coordinate origin as a factor of the texture dimensions.
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...