Browse Source

added gpu particle system to examples listing, added additional comments

Charlie 10 years ago
parent
commit
9e56db0cc0
2 changed files with 5 additions and 1 deletions
  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_text",
 				"webgl_geometry_text2",
 				"webgl_geometry_text2",
 				"webgl_gpgpu_birds",
 				"webgl_gpgpu_birds",
+				"webgl_gpu_particle_system",
 				"webgl_hdr",
 				"webgl_hdr",
 				"webgl_helpers",
 				"webgl_helpers",
 				"webgl_interactive_buffergeometry",
 				"webgl_interactive_buffergeometry",

+ 4 - 1
examples/webgl_gpu_particle_system.html

@@ -52,7 +52,10 @@
 
 
       scene = new THREE.Scene();
       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({
       particleSystem = new THREE.GPUParticleSystem({
         maxParticles: 250000
         maxParticles: 250000
       });
       });