Changeset 29694 for other-projects/nz-flag-design/trunk/render-3d/flag.html
- 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/flag.html
r29693 r29694 13 13 body { 14 14 font-family: Monospace; 15 background-color: #000;15 background-color: transparent; 16 16 color: #000; 17 17 margin: 0px; … … 124 124 125 125 <script type="x-shader/x-fragment" id="fragmentShaderDepth"> 126 126 127 127 uniform sampler2D texture; 128 128 varying vec2 vUV; … … 227 227 container = document.createElement( 'div' ); 228 228 document.body.appendChild( container ); 229 229 230 windStrength = 100; 230 231 231 232 // scene … … 363 364 // 364 365 365 stats = new Stats();366 /*stats = new Stats(); 366 367 stats.domElement.style.position = 'absolute'; 367 368 stats.domElement.style.top = '0px'; … … 370 371 stats.domElement.children[ 0 ].children[ 0 ].style.color = "#aaa"; 371 372 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";*/ 373 374 374 375 // … … 465 466 466 467 var time = Date.now(); 467 468 windStrength = Math.cos( time / 7000 ) * 100 + 200;468 469 //windStrength = Math.cos( time / 7000 ) * 100 + 200; 469 470 windForce.set( 1000,500,Math.sin( time / 1000 ) ).normalize().multiplyScalar( windStrength ); 470 471 arrow.setLength( windStrength ); … … 474 475 simulate(time); 475 476 render(); 476 stats.update();477 //stats.update(); 477 478 478 479 } … … 521 522 522 523 </script> 523 524 </body></html> 524 525 </body> 526 </html>
Note:
See TracChangeset
for help on using the changeset viewer.