fix render glitches

This commit is contained in:
LabyStudio
2022-01-31 21:18:20 +01:00
parent af525c88fa
commit c63bf36bca
8 changed files with 66 additions and 30 deletions
@@ -8,7 +8,7 @@ window.WorldRenderer = class {
|| !!document.createElement('canvas').getContext('webgl'));
// Create cameras
this.camera = new THREE.PerspectiveCamera(0, 1, 0.001, 10000);
this.camera = new THREE.PerspectiveCamera(0, 1, 0.001, 1000000);
this.camera.rotation.order = 'ZYX';
this.camera.up = new THREE.Vector3(0, 0, 1);