@@ -39,21 +39,21 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
39
39
this . canvas = args . object ;
40
40
// (canvas as any).scaleX = -1;
41
41
//this.group(this.canvas);
42
- //this.geoColors(this.canvas);
42
+ // this.geoColors(this.canvas);
43
43
//this.threeDepth(this.canvas);
44
44
//this.threeCrate(this.canvas);
45
- //this.skinningAndMorphing(this.canvas);
45
+ // this.skinningAndMorphing(this.canvas);
46
46
//this.nearestNeighbour(this.canvas);
47
- // this.threeOcean(this.canvas);
47
+ //this.threeOcean(this.canvas);
48
48
// this.threeCube(this.canvas);
49
49
//this.geoTextShapes(this.canvas);
50
50
//this.webGLHelpers(this.canvas);
51
51
//this.fbxLoader(this.canvas);
52
- // this.gtlfLoader(this.canvas);
52
+ this . gtlfLoader ( this . canvas ) ;
53
53
//this.rayCasting(this.canvas);
54
- this . ThreeDS ( this . canvas ) ;
54
+ // this.ThreeDS(this.canvas);
55
55
// this.ThreeMF(this.canvas);
56
- // this.gtlfTonemapping(this.canvas);
56
+ //this.gtlfTonemapping(this.canvas);
57
57
}
58
58
59
59
gtlfLoader ( canvas ) {
@@ -192,7 +192,7 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
192
192
scene = new THREE . Scene ( ) ;
193
193
194
194
camera = new THREE . PerspectiveCamera ( 45 , window . innerWidth / window . innerHeight , 0.25 , 20 ) ;
195
- camera . position . set ( - 1.8 , 0.6 , 2.7 ) ;
195
+ camera . position . set ( - 1.8 , 0.6 , 10 ) ;
196
196
197
197
controls = new OrbitControls ( camera , canvas ) ;
198
198
controls . addEventListener ( 'change' , render ) ; // use if there is no animation loop
@@ -801,7 +801,13 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
801
801
// scene.add( new CameraHelper( light.shadow.camera ) );
802
802
803
803
// ground
804
- var mesh = new THREE . Mesh ( new THREE . PlaneBufferGeometry ( 2000 , 2000 ) , new THREE . MeshPhongMaterial ( { color : 0x999999 , depthWrite : false } ) ) ;
804
+ var mesh = new THREE . Mesh (
805
+ new THREE . PlaneBufferGeometry ( 2000 , 2000 ) ,
806
+ new THREE . MeshPhongMaterial ( {
807
+ color : 0x999999 ,
808
+ depthWrite : false ,
809
+ } )
810
+ ) ;
805
811
mesh . rotation . x = - Math . PI / 2 ;
806
812
mesh . receiveShadow = true ;
807
813
scene . add ( mesh ) ;
@@ -1347,7 +1353,13 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
1347
1353
},5000)*/
1348
1354
} ) ;
1349
1355
1350
- var ground = new THREE . Mesh ( new THREE . PlaneBufferGeometry ( 400 , 400 ) , new THREE . MeshBasicMaterial ( { color : 0x6e6a62 , depthWrite : false } ) ) ;
1356
+ var ground = new THREE . Mesh (
1357
+ new THREE . PlaneBufferGeometry ( 400 , 400 ) ,
1358
+ new THREE . MeshBasicMaterial ( {
1359
+ color : 0x6e6a62 ,
1360
+ depthWrite : false ,
1361
+ } )
1362
+ ) ;
1351
1363
1352
1364
ground . rotation . x = - Math . PI / 2 ;
1353
1365
ground . renderOrder = 1 ;
@@ -1765,7 +1777,13 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
1765
1777
1766
1778
// ground
1767
1779
1768
- var mesh = new THREE . Mesh ( new THREE . PlaneBufferGeometry ( 2000 , 2000 ) , new THREE . MeshPhongMaterial ( { color : 0x999999 , depthWrite : false } ) ) ;
1780
+ var mesh = new THREE . Mesh (
1781
+ new THREE . PlaneBufferGeometry ( 2000 , 2000 ) ,
1782
+ new THREE . MeshPhongMaterial ( {
1783
+ color : 0x999999 ,
1784
+ depthWrite : false ,
1785
+ } )
1786
+ ) ;
1769
1787
mesh . rotation . x = - Math . PI / 2 ;
1770
1788
scene . add ( mesh ) ;
1771
1789
0 commit comments