Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
feat: add fields of scene property for terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Nov 26, 2021
1 parent 2b57b1a commit 8693b48
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
51 changes: 38 additions & 13 deletions pkg/builtin/manifest.yml
Expand Up @@ -22,22 +22,47 @@ extensions:
type: bool
title: Terrain
description: Show elevation when close to the surface.
- id: terrain
type: bool
title: Terrain
description: Show elevation when close to the surface.
# NOT SUPPORTED YET
# - id: terrainExaggeration
# type: number
# title: Terrain exaggeration
# defaultValue: 1
# - id: terrainExaggerationRelativeHeight
# type: number
# title: Terrain exaggeration relative height
- id: terrainType
type: string
title: Terrain Type
description: Specify terrain type.
choices:
- key: cesium
label: Cesium
- key: arcgis
label: ArcGIS
availableIf:
field: terrain
type: bool
value: true
- id: terrainExaggeration
type: number
title: Terrain exaggeration
description: A scalar used to exaggerate the terrain. Defaults to 1.0 (no exaggeration). A value of 2.0 scales the terrain by 2x. A value of 0.0 makes the terrain completely flat.
defaultValue: 1
suffix: x
availableIf:
field: terrain
type: bool
value: true
- id: terrainExaggerationRelativeHeight
type: number
title: Terrain exaggeration relative height
description: The height from which terrain is exaggerated. Defaults to 0.0. Terrain that is above this height will scale upwards and terrain that is below this height will scale downwards.
defaultValue: 0
suffix: m
availableIf:
field: terrain
type: bool
value: true
- id: depthTestAgainstTerrain
type: bool
title: Hide objects under terrain
description: Hides objects under the terrain. Depending on the loading status of the terrain, objects may be shown or hidden.
availableIf:
field: terrain
type: bool
value: true
- id: skybox
type: bool
title: Sky
Expand Down Expand Up @@ -1656,4 +1681,4 @@ extensions:
- id: layer
title: Layer
type: ref
ui: layer
ui: layer
12 changes: 12 additions & 0 deletions pkg/builtin/manifest_ja.yml
Expand Up @@ -14,9 +14,21 @@ extensions:
terrain:
title: 地形
description: 有効にすると、標高データが読み込みこまれ、立体的な地形を表現することができます。
terrainType:
title: 地形の種類
description: 地形の種類を指定します。
terrainExaggeration:
title: 地形の強調
description: 地形の強調を設定します。デフォルトは1.0(誇張しない)です。2.0は、地形を2倍に拡大します。0.0の値は地形を完全に平らにします。
terrainExaggerationRelativeHeight:
title: 地形の強調の基準
description: 地形が誇張される高さです。デフォルトは0.0です。この高さより上にある地形は上方に、この高さより下にある地形は下方にスケールされます。
depthTestAgainstTerrain:
title: 地形の下を非表示
description: 地形の下にあるオブジェクトを非表示にします。標高データの読み込み状況によってオブジェクトが表示されたり隠れたりすることがあります。
choices:
cesium: Cesium
arcgis: ArcGIS
skybox:
title: 宇宙の表示
description: 宇宙空間の表示を切り替えます。
Expand Down

0 comments on commit 8693b48

Please sign in to comment.