1
This commit is contained in:
16
src/main.ts
16
src/main.ts
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user