fix: correct camera position setting in GSPLAT
This commit is contained in:
parent
193553d103
commit
8191e9c869
1 changed files with 3 additions and 2 deletions
|
|
@ -137,8 +137,9 @@
|
||||||
const camera = new GSPLAT.Camera();
|
const camera = new GSPLAT.Camera();
|
||||||
const controls = new GSPLAT.OrbitControls(camera, renderer.canvas);
|
const controls = new GSPLAT.OrbitControls(camera, renderer.canvas);
|
||||||
|
|
||||||
// Adjust camera initial position
|
// Adjust camera initial position (GSPLAT uses camera.data.position)
|
||||||
camera.position.set(0, 0, 5);
|
camera.data.position.set(0, 0, 5);
|
||||||
|
controls.update();
|
||||||
|
|
||||||
// Resize handler
|
// Resize handler
|
||||||
const resize = () => {
|
const resize = () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue