Explorar o código

Add comment for GPUParticleSystem.geometryUpdate

06wj %!s(int64=8) %!d(string=hai) anos
pai
achega
df0fdfd375
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;