Files
zhengte.babylonjs-sdk/src/babylonjs/AppConfig.ts
2026-06-04 16:15:21 +08:00

34 lines
795 B
TypeScript

type OptionalCallback = (() => void) | null | undefined;
type ErrorCallback = ((error?: unknown) => void) | null | undefined;
/**
* 共享运行时配置对象
*/
export const AppConfig = {
container: document.querySelector('#renderDom') as HTMLCanvasElement,
modelUrlList: [] as string[],
env: {
envPath: '/hdr/sanGiuseppeBridge.env',
intensity: 1.5,
rotationY: 0,
background: false,
},
camera: {
position: { x: 0, y: 2, z: 5 },
target: { x: 0, y: 1, z: 0 },
},
gizmo: {
position: true,
rotation: false,
scale: false,
},
outline: {
enable: true,
color: '#2196F3',
thickness: 3.0,
occlusionStrength: 0.9,
occlusionThreshold: 0.0002,
},
};