This commit is contained in:
@@ -5,8 +5,8 @@ import { ViewportGizmo } from "three-viewport-gizmo";
|
|||||||
import Stats from 'three/examples/jsm/libs/stats.module';
|
import Stats from 'three/examples/jsm/libs/stats.module';
|
||||||
import { AnaglyphEffect } from 'three/addons/effects/AnaglyphEffect.js';
|
import { AnaglyphEffect } from 'three/addons/effects/AnaglyphEffect.js';
|
||||||
import { StereoEffect } from 'three/addons/effects/StereoEffect.js';
|
import { StereoEffect } from 'three/addons/effects/StereoEffect.js';
|
||||||
import { MapControls } from 'three/addons/controls/MapControls.js';
|
// import { MapControls } from 'three/addons/controls/MapControls.js';
|
||||||
import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js';
|
// import { FirstPersonControls } from 'three/addons/controls/FirstPersonControls.js';
|
||||||
import { TransformControls } from 'three/addons/controls/TransformControls.js';
|
import { TransformControls } from 'three/addons/controls/TransformControls.js';
|
||||||
import { ARButton } from 'three/addons/webxr/ARButton.js';
|
import { ARButton } from 'three/addons/webxr/ARButton.js';
|
||||||
import { XRButton } from 'three/addons/webxr/XRButton.js';
|
import { XRButton } from 'three/addons/webxr/XRButton.js';
|
||||||
@@ -28,7 +28,7 @@ class GameEngine extends THREE.EventDispatcher{
|
|||||||
this.opts = opts;
|
this.opts = opts;
|
||||||
const gameEngine = this;
|
const gameEngine = this;
|
||||||
|
|
||||||
this.perspectiveCamera = new THREE.PerspectiveCamera(45, this.aspect, 0.01, 99);
|
this.perspectiveCamera = new THREE.PerspectiveCamera(45, this.aspect, 0.001, 99);
|
||||||
this.raycaster = new THREE.Raycaster();
|
this.raycaster = new THREE.Raycaster();
|
||||||
this.perspectiveCamera.position.set(0, 0, 10);
|
this.perspectiveCamera.position.set(0, 0, 10);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user