From 978adea49d15f845462cb42a73966019ecb463d2 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Sun, 23 Jun 2024 06:39:27 +0300 Subject: [PATCH] some other annoying vr bugfixes: do not overlay hotbar with enter vr button --- prismarine-viewer/viewer/lib/worldrendererThree.ts | 3 ++- src/styles.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/prismarine-viewer/viewer/lib/worldrendererThree.ts b/prismarine-viewer/viewer/lib/worldrendererThree.ts index 9a76474b..cc89a823 100644 --- a/prismarine-viewer/viewer/lib/worldrendererThree.ts +++ b/prismarine-viewer/viewer/lib/worldrendererThree.ts @@ -162,7 +162,8 @@ export class WorldRendererThree extends WorldRendererCommon { render () { tweenJs.update() - this.renderer.render(this.scene, this.camera) + const cam = this.camera instanceof THREE.Group ? this.camera.children.find(child => child instanceof THREE.PerspectiveCamera) as THREE.PerspectiveCamera : this.camera + this.renderer.render(this.scene, cam) } renderSign (position: Vec3, rotation: number, isWall: boolean, isHanging: boolean, blockEntity) { diff --git a/src/styles.css b/src/styles.css index ad90b7fb..b0e46cf2 100644 --- a/src/styles.css +++ b/src/styles.css @@ -68,6 +68,7 @@ body { background: rgba(0, 0, 0, 0.3) !important; opacity: 0.7 !important; position: fixed !important; + bottom: 60px; } .dirt-bg {