Skip to main content

Module: Default/Builder/Geometry/QuadUVs

Variables

QuadUVs

Const QuadUVs: Object

||||||||||||||||||||||||||||||||||||| [TOP & BOTTOM] Not Flipped

2: w 0,h 0 3: w 1, h 0
/
/
/
--------
1: w 0,h 1 4: w 1,h 1

=============================== Flipped

4: w 1,h 0 3: w 0, h 0
\
\
\
--------
1: w 1,h 1 2: w 0, h 1

|||||||||||||||||||||||||||||||||||||||| [Sides] Not Flipped

4: w 1,h 0 3: w 0, h 0
\
\
\
--------
1: w 1,h 1 2: w 0, h 1

=============================== Flipped

2: w 0,h 0 3: w 1, h 0
/
/
/
--------
1: w 0,h 1 4: w 1,h 1

Type declaration

NameType
advancedUVsRecord<UVFaceTypes, (uv: number, data: AdvancedUVs, uvs: number[], flipped: boolean) => void>
uvFunctionsRecord<DirectionNames, (data: AddQuadUVsData) => void>
uvRotationsRecord<UVFaceTypes, Record<TextureRotations, (uv: number, ws: number, we: number, hs: number, he: number, flipped: boolean, uvs: number[]) => void>>
addAdvancedUVs(direction: DirectionNames, uv: number, uvs: number[], data: AdvancedUVs, flipped: boolean) => void
addUVs(data: AddQuadUVsData) => void

Defined in

divinevoxel/foundation/src/Default/Builder/Geometry/QuadUVs.ts:56