1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 21:33:56 +02:00
This commit is contained in:
syuilo
2026-04-21 11:46:48 +09:00
parent 5d389732d9
commit 1f81960640
2 changed files with 23 additions and 3 deletions

View File

@@ -239,6 +239,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
//this.scene.autoClearDepthAndStencil = false;
this.scene.skipPointerMovePicking = true;
this.scene.skipFrustumClipping = true; // snapshot renderingでは全てのメッシュがアクティブになっている必要があるため
this.scene.gravity = new BABYLON.Vector3(0, -0.1, 0).scale(WORLD_SCALE);
this.sr = new BABYLON.SnapshotRenderingHelper(this.scene);
@@ -293,7 +294,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
switch (kbInfo.type) {
case BABYLON.KeyboardEventTypes.KEYDOWN:
if (kbInfo.event.key === 'Shift') {
this.camera.speed = normalSpeed * 3;
this.camera.speed = normalSpeed * 4;
}
break;
case BABYLON.KeyboardEventTypes.KEYUP: