UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

30 lines 864 B
/** * Octahedral UV wrapping. * Full winding support without breaking octahedral seam rules. * * ``` * +-----+-----+ * | 6 /|\ 5 | * | / | \ | * | / | \ | * | / 2 | 1 \ | * |/ | \| * +-----+-----+ * |\ 3 | 4 /| * | \ | / | * | \ | / | * | \ | / | * | 7 \|/ 8 | * +-----+-----+ *``` * * @param {number[]} out_uv - Array to write the wrapped UVs into * @param {number} out_offset - Index to start writing at * @param {number[]} in_uv - Input UV array (can be outside 0..1) * @param {number} in_offset - Index to start reading from * * @author Alex Goldring * @copyright Company Named Limited (c) 2025 */ export function octahedral_uv_wrap(out_uv: number[], out_offset: number, in_uv: number[], in_offset: number): void; //# sourceMappingURL=octahedral_uv_wrap.d.ts.map