Browse Source

- Updated README

Mr.doob 15 years ago
parent
commit
f4335c5409
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -55,11 +55,11 @@ This code creates a camera, then creates a scene object, adds a bunch of random
 
 			for (var i = 0; i < 1000; i++) {
 
-				var particle = new THREE.Particle( new THREE.ColorFillMaterial( Math.random() * 0x808008 + 0x808080, 1 ) );
-				particle.size = Math.random() * 10 + 5;
+				var particle = new THREE.Particle( new THREE.ParticleCircleMaterial( Math.random() * 0x808008 + 0x808080, 1 ) );
 				particle.position.x = Math.random() * 2000 - 1000;
 				particle.position.y = Math.random() * 2000 - 1000;
 				particle.position.z = Math.random() * 2000 - 1000;
+				particle.scale.x = particle.scale.y = Math.random() * 10 + 5;
 				scene.addObject( particle );
 
 			}