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

+ 1 - 1
README.md

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