mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
1925840f3f
commit
844196cfea
2 changed files with 15 additions and 10 deletions
|
|
@ -54,14 +54,6 @@ export abstract class EngineBase<EVs extends EngineBaseEvents> extends EventEmit
|
|||
});
|
||||
|
||||
this.scene = new BABYLON.Scene(this.engine);
|
||||
|
||||
if (!IN_WEB_WORKER) {
|
||||
(window as any).showBabylonInspector = () => {
|
||||
import('@babylonjs/inspector').then(({ ShowInspector }) => {
|
||||
ShowInspector(this.scene);
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
private currentRafId: number | null = null;
|
||||
|
|
|
|||
|
|
@ -6,8 +6,21 @@
|
|||
import * as BABYLON from '@babylonjs/core/pure';
|
||||
|
||||
export function registerBabylonRuntime(): void {
|
||||
BABYLON.RegisterFullEngineExtensions();
|
||||
BABYLON.RegisterFullWebGPUEngineExtensions();
|
||||
BABYLON.RegisterStandardEngineExtensions();
|
||||
BABYLON.RegisterStandardWebGPUEngineExtensions();
|
||||
BABYLON.RegisterAbstractEngineAlpha();
|
||||
BABYLON.RegisterAbstractEngineTexture();
|
||||
BABYLON.RegisterAbstractEngineCubeTexture();
|
||||
BABYLON.RegisterAbstractEngineQuery();
|
||||
BABYLON.RegisterAbstractEngineTextureSelector();
|
||||
BABYLON.RegisterAbstractEngineTimeQuery();
|
||||
BABYLON.RegisterAbstractEngineViews();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineRawTexture();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineReadTexture();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineCubeTexture();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineRenderTargetCube();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineQuery();
|
||||
BABYLON.RegisterEnginesWebGPUExtensionsEngineDynamicTexture();
|
||||
BABYLON.RegisterBufferAlign();
|
||||
BABYLON.RegisterCubeTexture();
|
||||
BABYLON.RegisterStandardMaterial();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue