new ov.TerrainSceneOverlay()
webgl/ov-TerrainSceneOverlay.js, line 6
場景疊加圖層
Extends
Members
-
enableShadow
-
陰影顯示
Properties:
Name Type Description enableShadow
Boolean 是否顯示陰影
-
readonlylayername
-
圖層名稱
Properties:
Name Type Description layername
String 圖層名稱
-
opacity
-
圖層不透明度
Properties:
Name Type Description opacity
Number 圖層不透明度
-
show
-
圖層顯示
Properties:
Name Type Description show
Boolean 圖層顯示
-
readonlyuri
-
圖層uri
Properties:
Name Type Description uri
Number 圖層uri
Methods
-
enableAlphaTest(enable)
webgl/ov-TerrainSceneOverlay.js, line 45 -
開關Alpha測試,判斷若圖點的透明度達到一定程度便直接不輸出該點。
Name Type Description enable
Boolean 是否使用Alpha Test
-
setAlphaFunc(func, ref)
webgl/ov-TerrainSceneOverlay.js, line 54 -
若有使用Alpha測試,則可設定Alpha參考值的值與比較方法
Name Type Description func
ov.ALPHA_TEST_FUNC 比較的方法
ref
Number 比較的值,0.0 ~ 1.0
-
inherited update(param)
webgl/ov-TerrainOverlay.js, line 70 -
更新疊加圖層屬性。
Name Type Description param
Object optional 參數物件。