Changeset 29547 for other-projects/nz-flag-design/trunk/render-3d/weather
- Timestamp:
- 2014-12-08T13:25:38+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/render-3d/weather/snow.js
r29475 r29547 14 14 15 15 // create the particle variables 16 this.particleCount = 1000,16 this.particleCount = 2000, 17 17 this.particles = new THREE.Geometry(), 18 18 … … 25 25 blending: THREE.AdditiveBlending, 26 26 transparent: true, 27 opacity: 0. 527 opacity: 0.9 28 28 }); 29 29 … … 33 33 // create a particle with random 34 34 // position values, -250 -> 250 35 var pX = Math.random() * window.innerWidth * 2- window.innerWidth,36 pY = Math.random() * window.innerHeight * 3- window.innerHeight,37 pZ = Math.random() * window.innerWidth * 2- window.innerWidth;35 var pX = Math.random() * window.innerWidth * 3 - window.innerWidth, 36 pY = Math.random() * window.innerHeight * 4 - window.innerHeight, 37 pZ = Math.random() * window.innerWidth * 3 - window.innerWidth; 38 38 this.particle = new THREE.Vector3(pX, pY, pZ); 39 39
Note:
See TracChangeset
for help on using the changeset viewer.