File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
test/manual-test-examples/webgl/material Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212 </ style >
1313</ head >
1414< body >
15+ < p style ="position: absolute; width:300px; left:50%; margin-left: -150px; color:white; text-align: center; "> Press mouse to enable per-pixel-lighting</ p >
1516< script >
1617( function ( ) { var script = document . createElement ( 'script' ) ; script . onload = function ( ) { var stats = new Stats ( ) ; stats . domElement . style . cssText = 'position:fixed;left:0;top:0;z-index:10000' ; document . body . appendChild ( stats . domElement ) ; requestAnimationFrame ( function loop ( ) { stats . update ( ) ; requestAnimationFrame ( loop ) } ) ; } ; script . src = 'http://rawgit.com/mrdoob/stats.js/master/build/stats.min.js' ; document . head . appendChild ( script ) ; } ) ( )
1718</ script >
Original file line number Diff line number Diff line change 11var teapot ;
22
3+ function preload ( ) {
4+ teapot = loadModel ( '../wireframe/assets/teapot.obj' , true ) ;
5+ }
6+
37function setup ( ) {
48 createCanvas ( windowWidth , windowHeight , WEBGL ) ;
5- teapot = loadModel ( '../wireframe/assets/teapot.obj' , true ) ;
69 noStroke ( ) ;
710}
811
Original file line number Diff line number Diff line change 55
66var teapot ;
77
8+ function preload ( ) {
9+ teapot = loadModel ( '../wireframe/assets/teapot.obj' , true ) ;
10+ }
11+
812function setup ( ) {
913 createCanvas ( windowWidth , windowHeight , WEBGL ) ;
10- teapot = loadModel ( 'assets/teapot.obj' , true ) ;
1114}
1215
1316
You can’t perform that action at this time.
0 commit comments