- Timestamp:
- 2015-02-09T12:11:28+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/render-3d/weather/rain.js
r29719 r29721 3 3 4 4 this.isInit = false; 5 this.MASS = 0. 01;5 this.MASS = 0.9; 6 6 7 7 this.init = function() { … … 14 14 15 15 // create the particle variables 16 this.particleCount = 10000,16 this.particleCount = 8000, 17 17 this.particles = new THREE.Geometry(), 18 18 this.pMaterial = new THREE.ParticleBasicMaterial({ … … 39 39 // create a velocity vector 40 40 this.particle.velocity = new THREE.Vector3( 41 (windForce.x * (1-this.MASS)), // x 42 -Math.random() * 0.01, // y 43 (windForce.z * (1-this.MASS))); // z 41 (windForce.x * this.MASS), // x 42 -Math.random() * this.MASS, // y 43 (windForce.z * this.MASS) // z 44 ); 44 45 45 46 // add it to the geometry
Note:
See TracChangeset
for help on using the changeset viewer.