浏览代码

added gpu particle system to examples listing, added additional comments

Charlie 10 年之前
父节点
当前提交
9e56db0cc0
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 0
      examples/index.html
  2. 4 1
      examples/webgl_gpu_particle_system.html

+ 1 - 0
examples/index.html

@@ -236,6 +236,7 @@
 				"webgl_geometry_text",
 				"webgl_geometry_text2",
 				"webgl_gpgpu_birds",
+				"webgl_gpu_particle_system",
 				"webgl_hdr",
 				"webgl_helpers",
 				"webgl_interactive_buffergeometry",

+ 4 - 1
examples/webgl_gpu_particle_system.html

@@ -52,7 +52,10 @@
 
       scene = new THREE.Scene();
 
-      // setup particle system
+      // The GPU Particle system extends THREE.Object3D, and so you can use it
+      // as you would any other scene graph component.  Particle positions will be
+      // relative to the position of the particle system, but you will probably only need one
+      // system for your whole scene
       particleSystem = new THREE.GPUParticleSystem({
         maxParticles: 250000
       });