arx-level-generator
Version:
A tool for creating Arx Fatalis maps
17 lines (16 loc) • 789 B
TypeScript
import { BufferGeometry, Vector2 } from 'three';
/**
* only works with tileable textures
*
* multiplies uv coordinates in a way that allows textures to be tiled or flipped
*
* `scaleUV(new Vector2(2, 3), geometry)` will shrink the texture in a way
* that the texture will fit 2 times horizontally and 3 times vertically
*
* `scaleUV(new Vector(-1, 1), geometry)` will flip the texture horizontally
* `scaleUV(new Vector(1, -1), geometry)` will flip the texture vertically
*/
export declare const scaleUV: (scale: Vector2, geometry: BufferGeometry) => void;
export declare const normalizeUV: (geometry: BufferGeometry) => void;
export declare const flipUVHorizontally: (geometry: BufferGeometry) => void;
export declare const flipUVVertically: (geometry: BufferGeometry) => void;