This commit is contained in:
2026-04-30 14:46:01 +08:00
parent 604dcdf3fb
commit 4207fcf7c2
15 changed files with 1038 additions and 87 deletions

View File

@ -23,6 +23,18 @@ type InitParams = {
rotationY?: number;
background?: boolean;
};
gizmo?: {
position?: boolean;
rotation?: boolean;
scale?: boolean;
};
outline?: {
enable?: boolean;
color?: string;
thickness?: number;
occlusionStrength?: number;
occlusionThreshold?: number;
};
};
let mainApp: MainApp | null = null;
@ -53,7 +65,9 @@ const kernel = {
mainApp.loadAConfig({
container,
modelUrlList: params.modelUrlList || [],
env: params.env
env: params.env,
gizmo: params.gizmo,
outline: params.outline,
});
await mainApp.Awake();