File tree 5 files changed +6834
-9
lines changed
5 files changed +6834
-9
lines changed Original file line number Diff line number Diff line change 136
136
"redux-logger" : " ^3.0.1" ,
137
137
"redux-thunk" : " ^2.2.0" ,
138
138
"serve-favicon" : " ^2.3.2" ,
139
- "whs" : " ^2.0.0-beta.8 "
139
+ "whs" : " ^2.0.0-beta.9.1 "
140
140
}
141
141
}
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import * as WHS from 'whs/build/whitestorm ' ;
2
+ import * as WHS from 'whs' ;
3
3
import * as THREE from 'three' ;
4
4
5
5
import { add , remove } from 'modules/world/' ;
Original file line number Diff line number Diff line change 1
1
const style = require ( './style.css' ) ;
2
2
3
3
import * as React from 'react' ;
4
- import * as WHS from 'whs/build/whitestorm ' ;
4
+ import * as WHS from 'whs' ;
5
5
import * as THREE from 'three' ;
6
6
7
7
import { add , remove } from 'modules/world/' ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function remove(): IWorldAction {
44
44
}
45
45
46
46
function newWorld ( ) {
47
- const cameraModule = new WHS . app . CameraModule ( {
47
+ const cameraModule = new WHS . CameraModule ( {
48
48
position : {
49
49
z : 30 ,
50
50
y : 40
@@ -53,13 +53,13 @@ function newWorld() {
53
53
near : 1
54
54
} ) ;
55
55
56
- const controlsModule = new WHS . controls . OrbitModule ( ) ;
56
+ const controlsModule = new WHS . OrbitControlsModule ( ) ;
57
57
58
58
const world = new WHS . App ( [
59
- new WHS . app . ElementModule ( ) ,
60
- new WHS . app . SceneModule ( ) ,
59
+ new WHS . ElementModule ( ) ,
60
+ new WHS . SceneModule ( ) ,
61
61
cameraModule ,
62
- new WHS . app . RenderingModule ( {
62
+ new WHS . RenderingModule ( {
63
63
bgColor : 0x2a3340 ,
64
64
65
65
renderer : {
@@ -70,7 +70,7 @@ function newWorld() {
70
70
}
71
71
} ) ,
72
72
controlsModule ,
73
- new WHS . app . ResizeModule ( )
73
+ new WHS . ResizeModule ( )
74
74
] ) ;
75
75
76
76
new WHS . AmbientLight ( {
You can’t perform that action at this time.
0 commit comments