Julien Barrois 6 年之前
父节点
当前提交
45d4dfaa69
共有 1 个文件被更改,包括 2 次插入6 次删除
  1. 2 6
      src/Particles/babylon.solidParticleSystem.ts

+ 2 - 6
src/Particles/babylon.solidParticleSystem.ts

@@ -836,12 +836,8 @@ module BABYLON {
                         colidx = colorIndex + pt * 4;
                         uvidx = uvIndex + pt * 2;
 
-                        positions32[idx] = 0.0;
-                        positions32[idx + 1] = 0.0;
-                        positions32[idx + 2] = 0.0;
-                        normals32[idx] = 0.0;
-                        normals32[idx + 1] = 0.0;
-                        normals32[idx + 2] = 0.0;
+                        positions32[idx] = positions32[idx + 1] = positions32[idx + 2] = 0;
+                        normals32[idx] = normals32[idx + 1] = normals32[idx + 2] = 0;
                         if (this._computeParticleColor && particle.color) {
                             const color = particle.color;
                             colors32[colidx] = color.r;