Skip to content

Commit

Permalink
chore: add orbit controls
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Nov 1, 2021
1 parent fbc67f2 commit ab4a94d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/demo/canvas-three/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
//this.geoColors(this.canvas);
//this.threeDepth(this.canvas);
//this.threeCrate(this.canvas);
//this.skinningAndMorphing(this.canvas);
this.skinningAndMorphing(this.canvas);
//this.nearestNeighbour(this.canvas);
this.threeOcean(this.canvas);
//this.threeOcean(this.canvas);
//this.threeCube(this.canvas);
//this.threeCar(this.canvas);
//this.threeKeyframes(this.canvas);
Expand Down Expand Up @@ -2610,6 +2610,9 @@ export class DemoSharedCanvasThree extends DemoSharedBase {
//container.appendChild( renderer.domElement );

window.addEventListener('resize', onWindowResize, false);

const controls = new OrbitControls(camera, canvas);
controls.update();

// stats
/*stats = new Stats();
Expand Down

0 comments on commit ab4a94d

Please sign in to comment.