@blooper.gg/toodle / textures/types / UvRegion
Type Alias: UvRegion
UvRegion =
object
Defined in: textures/types.ts:26
A UvRegion is a region of the texture atlas in normalized texels.
Properties
uvOffset
uvOffset:
Vec2
Defined in: textures/types.ts:34
The offset of the UVs in normalized texels. Relative to the un-cropped texture.
Example
ts
{ x: 10 / 4096, y: 10 / 4096 }
uvScale
uvScale:
Size
Defined in: textures/types.ts:42
The scale of the UVs in normalized texels. Derived from the width and height of the un-cropped texture.
Example
ts
{ width: 1 / 4096, height: 1 / 4096 }
uvScaleCropped?
optional
uvScaleCropped:Size
Defined in: textures/types.ts:50
The scale of the UVs in normalized texels. Derived from the width and height of the cropped texture.
Example
ts
{ width: 1 / 4096, height: 1 / 4096 }