Преглед изворни кода

Add comment for GPUParticleSystem.geometryUpdate

06wj пре 8 година
родитељ
комит
df0fdfd375
1 измењених фајлова са 1 додато и 0 уклоњено
  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;