创建应用
快速创建一个Three.js场景
示例
类型
js
function createApp(
options?: CreateAppOptions
): ThreeUse参数
CreateAppOptions
| 参数名 | 描述 | 类型 | 默认值 |
|---|---|---|---|
| clearColor | 画布颜色 | THREE.ColorRepresentation | #181818 |
| cameraPosition | 相机初始位置 | [number, number, number] | [0, 0, 0] |
| fov | 相机fov参数 | number | 35 |
| aspect | 相机aspect参数 | number | 16/9 |
| near | 相机near参数 | number | 0.5 |
| far | 相机far参数 | number | 10000 |
| outputColorSpace | 色彩空间 | THREE.ColorSpace | THREE.LinearSRGBColorSpace |
ThreeUse