This commit is contained in:
syuilo 2026-05-22 18:59:21 +09:00
commit 05a8dcf897
3 changed files with 12 additions and 0 deletions

View file

@ -88,6 +88,10 @@ export abstract class EngineControllerBase<T extends EngineBase<EngineBaseEvents
}
};
} else {
//BABYLON.RegisterStandardEngineExtensions();
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
//BABYLON.RegisterCollisionCoordinator();
const babylonEngine = new BABYLON.WebGPUEngine(canvas, { doNotHandleContextLost: true, powerPreference: 'high-performance', antialias: this.options.antialias });
babylonEngine.compatibilityMode = false;
babylonEngine.enableOfflineSupport = false;

View file

@ -9,6 +9,10 @@ import { RoomObjectPreviewEngine } from './previewEngine.js';
let engine: RoomObjectPreviewEngine | null = null;
let canvas: OffscreenCanvas | null = null;
//BABYLON.RegisterStandardEngineExtensions();
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
//BABYLON.RegisterCollisionCoordinator();
// TODO: 他のWorkerと実装を共通化
onmessage = async (event) => {
//console.log('Worker received message:', event.data);

View file

@ -11,6 +11,10 @@ import type { RoomAttachments } from './utility.js';
let engine: RoomEngine | null = null;
let canvas: OffscreenCanvas | null = null;
//BABYLON.RegisterStandardEngineExtensions();
//BABYLON.RegisterEnginesExtensionsEngineRawTexture();
//BABYLON.RegisterCollisionCoordinator();
// TODO: 他のWorkerと実装を共通化
onmessage = async (event) => {
//console.log('Worker received message:', event.data);