UNPKG

soonspacejs

Version:
12 lines (11 loc) 508 B
import { Texture, CubeTexture, DataTexture } from 'three'; import { GetTextureOptions, IColor } from '../Interface'; declare function getTexture({ path, file, }: GetTextureOptions): Promise<CubeTexture | DataTexture | Texture>; export { getTexture, }; interface GradientTextureOptions { colors: IColor[]; stops?: number[]; size?: number; } declare function gradientTexture(options?: GradientTextureOptions): Texture<HTMLCanvasElement> | null; export { GradientTextureOptions, gradientTexture, };