UNPKG

arx-level-generator

Version:
17 lines (16 loc) 789 B
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;