- Timestamp:
- 2015-01-22T14:28:16+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/render-3d/weather/snow.js
r29634 r29694 14 14 15 15 // create the particle variables 16 this.particleCount = 3000,16 this.particleCount = 6000, 17 17 this.particles = new THREE.Geometry(), 18 18 … … 33 33 // create a particle with random 34 34 // position values 35 var pX = (Math.random() * 3000) - 1500,36 pY = Math.random() * window.innerHeight * 3- window.innerHeight,37 pZ = (Math.random() * 3000) - 1500;35 var pX = (Math.random() * 10000) - 5000, 36 pY = Math.random() * window.innerHeight * 6 - window.innerHeight, 37 pZ = (Math.random() * 10000) - 5000; 38 38 this.particle = new THREE.Vector3(pX, pY, pZ); 39 39 … … 75 75 // check if we need to reset 76 76 if(this.particle.y < -10) { 77 this.particle.y = (window.innerHeight* 2)+(Math.random() * 100);77 this.particle.y = (window.innerHeight*6)+(Math.random() * 100); 78 78 this.particle.velocity.y = 0; 79 this.particle.x = (Math.random() * 4000) - 2000;80 this.particle.z = (Math.random() * 4000) - 2000;79 this.particle.x = (Math.random() * 10000) - 5000; 80 this.particle.z = (Math.random() * 10000) - 5000; 81 81 82 82 }
Note:
See TracChangeset
for help on using the changeset viewer.