UNPKG

three-scene

Version:

3D 场景

40 lines (37 loc) 565 B
import * as THREEWEBGPU from 'three/webgpu' type THREE = typeof THREEWEBGPU export interface Options { /** * 大小 * 默认: 1 */ size: number /** * 颜色 * 默认: 0x61b9ea */ color: number | string /** * 贴图地址 */ textureSrc: string /** * 发光强度 */ bloomIntensity: number | THREE['TSL']['uniform'] /** * 时长 * 默认: 500 */ duration: number /** * 起始倍数 * 默认: 0.1 */ startScale: number /** * 结束倍数 * 默认:2 */ endScale: number }