Appearance
skyUtils ?
SkyUtils ?
Kind: global class
new SkyUtils() ?
天空盒
SkyUtils.createSky(radius, widthSegments, heightSegments, skyCenter) ? fthree.Mesh ?
創(chuàng)建帶地平線漸變的天空
Kind: static method of SkyUtils
Returns: fthree.Mesh - sky
| Param | Type | Description |
|---|---|---|
| radius | number | 半徑 推薦 radius 最小值為 4000,最大值為 20000 |
| widthSegments | number | - 寬度段 |
| heightSegments | number | 高度段 |
| skyCenter | fthree.Vector3 | 天空中心 |
SkyUtils.createSkyFromTextures(url) ? THREE.Texture ?
貼圖天空盒
Kind: static method of SkyUtils
Returns: THREE.Texture - 天空紋理
| Param | Type | Description |
|---|---|---|
| url | string | 貼圖路徑 |
SkyUtils.createSphereSkyBox(radius, map, positions) ? THREE.Mesh ?
球形貼圖天空
Kind: static method of SkyUtils
Returns: THREE.Mesh - sky
| Param | Type | Description |
|---|---|---|
| radius | number | 半徑 |
| map | string | 貼圖路徑 |
| positions | Array | 天空盒中心點(diǎn) |
SkyUtils.updateSphereSkybox(scene, opts) ?
更新球形天空盒
Kind: static method of SkyUtils
| Param | Type | Description |
|---|---|---|
| scene | THREE.Scene | 場(chǎng)景 |
| opts | object | 參數(shù) |
| opts.radius | number | 半徑 |
| opts.map | string | 紋理 |
| opts.positions | Array | 數(shù)組 |
SkyUtils.createDynamicSky(opts, animationManager) ?
動(dòng)態(tài)天空
Kind: static method of SkyUtils
| Param | Type | Description |
|---|---|---|
| opts | object | 動(dòng)態(tài)天空參數(shù) |
| opts.cloudSpeed | number | 云層流動(dòng)速度 |
| opts.cloudScale | number | 云朵大小 |
| opts.cloudInt | number | 云層色彩 |
| opts.skycolor1 | string | 西方天空顏色 |
| opts.skycolor2 | string | 東方天空顏色 |
| opts.radius | number | 半徑 |
| opts.position | Array | 位置數(shù)組 |
| opts.rotation | Array | 旋轉(zhuǎn)數(shù)組 |
| animationManager | * | 全局動(dòng)畫(huà)管理器 |