Julien Barrois 6 years ago
parent
commit
45d4dfaa69
1 changed files with 2 additions and 6 deletions
  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;