Procházet zdrojové kódy

Add comment for GPUParticleSystem.geometryUpdate

06wj před 8 roky
rodič
revize
df0fdfd375
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      examples/js/GPUParticleSystem.js

+ 1 - 0
examples/js/GPUParticleSystem.js

@@ -461,6 +461,7 @@ THREE.GPUParticleContainer = function( maxParticles, particleSystem ) {
 				sizeAttribute.updateRange.offset = 0;
 				lifeTimeAttribute.updateRange.offset = 0;
 
+				// Use -1 to update the entire buffer, see https://github.com/mrdoob/three.js/pull/11476
 				positionStartAttribute.updateRange.count = -1;
 				startTimeAttribute.updateRange.count = -1;
 				velocityAttribute.updateRange.count = -1;