Ignore:
Timestamp:
2014-12-08T13:25:38+13:00 (9 years ago)
Author:
bmt11
Message:

Added updating of textures so when the flag is changed the updated version will display. Also started implementing some nice CSS buttons for weather control and wind control to come soon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nz-flag-design/trunk/render-3d/weather/snow.js

    r29475 r29547  
    1414       
    1515            // create the particle variables
    16             this.particleCount = 1000,
     16            this.particleCount = 2000,
    1717            this.particles = new THREE.Geometry(),
    1818           
     
    2525                blending: THREE.AdditiveBlending,
    2626                transparent: true,
    27                 opacity: 0.5
     27                opacity: 0.9
    2828            });
    2929
     
    3333                // create a particle with random
    3434                // 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;
    3838                    this.particle = new THREE.Vector3(pX, pY, pZ); 
    3939               
Note: See TracChangeset for help on using the changeset viewer.