Ignore:
Timestamp:
2015-01-22T14:28:16+13:00 (9 years ago)
Author:
bmt11
Message:

Wind Control is now fully implemented and functioning as expected :)

File:
1 edited

Legend:

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

    r29693 r29694  
    1313            body {
    1414                font-family: Monospace;
    15                 background-color: #000;
     15                background-color: transparent;
    1616                color: #000;
    1717                margin: 0px;
     
    124124       
    125125        <script type="x-shader/x-fragment" id="fragmentShaderDepth">
    126 
     126       
    127127            uniform sampler2D texture;
    128128            varying vec2 vUV;
     
    227227                container = document.createElement( 'div' );
    228228                document.body.appendChild( container );
    229                    
     229               
     230                windStrength = 100;
    230231               
    231232                // scene
     
    363364                //
    364365
    365                 stats = new Stats();
     366                /*stats = new Stats();
    366367                stats.domElement.style.position = 'absolute';
    367368                stats.domElement.style.top = '0px';
     
    370371                stats.domElement.children[ 0 ].children[ 0 ].style.color = "#aaa";
    371372                stats.domElement.children[ 0 ].style.background = "transparent";
    372                 stats.domElement.children[ 0 ].children[ 1 ].style.display = "none";
     373                stats.domElement.children[ 0 ].children[ 1 ].style.display = "none";*/
    373374
    374375                //
     
    465466
    466467                var time = Date.now();
    467                
    468                 windStrength = Math.cos( time / 7000 ) * 100 + 200;
     468
     469                //windStrength = Math.cos( time / 7000 ) * 100 + 200;
    469470                windForce.set( 1000,500,Math.sin( time / 1000 ) ).normalize().multiplyScalar( windStrength );
    470471                arrow.setLength( windStrength );
     
    474475                simulate(time);
    475476                render();
    476                 stats.update();
     477                //stats.update();
    477478
    478479            }
     
    521522       
    522523        </script>
    523        
    524 </body></html>
     524
     525    </body>
     526</html>
Note: See TracChangeset for help on using the changeset viewer.