소스 검색

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
       });