浏览代码

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;