Three.js 0.142.0 粒子系统:创建 1000 个随机粒子
const particleCount = 1000; const particles = new THREE.Geometry();
for (let p = 0; p < particleCount; p++) { const particle = new THREE.Vector3( Math.random() * 50 - 25, Math.random() * 50 - 25, Math.random() * 50 - 25 ); particles.vertices.push(particle); }
原文地址: https://www.cveoy.top/t/topic/mLrb 著作权归作者所有。请勿转载和采集!