File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class App extends Component {
6
6
render ( ) {
7
7
const { width, height } = this . props . size ;
8
8
return (
9
- < div className = "App" >
9
+ < div className = "App" style = "background-image: url('high_Tea.png');" >
10
10
< Background width = { width } height = { height } />
11
11
< h1 className = "center w-100" > SIGGRAPH @ UIUC</ h1 >
12
12
</ div >
Original file line number Diff line number Diff line change @@ -27,13 +27,16 @@ class Background extends Component {
27
27
// ADD CUBE
28
28
let that = this ;
29
29
const loader = new FBXLoader ( ) ;
30
- loader . load ( "models/index.fbx" , function ( object ) {
30
+ //switched to teapot for now
31
+ loader . load ( "models/teapot.fbx" , function ( object ) {
31
32
object . traverse ( function ( child ) {
32
33
if ( child . isMesh ) {
33
34
child . castShadow = true ;
34
35
child . receiveShadow = true ;
35
36
}
36
37
} ) ;
38
+
39
+
37
40
that . scene . add ( object ) ;
38
41
that . cube = object ;
39
42
that . start ( ) ;
You can’t perform that action at this time.
0 commit comments