Skip to content

创建应用

快速创建一个Three.js场景

示例

类型

js
function createApp(
  options?: CreateAppOptions
): ThreeUse

参数

CreateAppOptions

参数名描述类型默认值
clearColor画布颜色THREE.ColorRepresentation#181818
cameraPosition相机初始位置[number, number, number][0, 0, 0]
fov相机fov参数number35
aspect相机aspect参数number16/9
near相机near参数number0.5
far相机far参数number10000
outputColorSpace色彩空间THREE.ColorSpaceTHREE.LinearSRGBColorSpace

MIT Licensed.