Three.js SphereBufferGeometry滞后

时间:2018-08-26 13:28:41

标签: three.js vertex shading

picture of spheres

这是我的计算机不落后于Three.js上创建的15个球体的最大顶点数。如果我将它们放得更球形,有什么方法可以解决这个问题?增强顶点

var geometry = new THREE.SphereBufferGeometry(15);
for (var i = 0; i < 20; i++) {
    var material = new THREE.ParticleBasicMaterial({
        color: 0xffffff,
        transparent: true,
        opacity: 1,
        wireframe: true,
        wireframeColor: 0xffff00,
        wireframeLinewidth: 2,
        wireframeLinejoin: 'round',
        wireframeLinecap: 'round'
    });
    var object = new THREE.Mesh(geometry, material);

0 个答案:

没有答案