在线免费看污_亚洲视频在线免费观看_91精品国产电影_久久国产亚洲_久久四虎影院_亚洲欧美a_国产精品一区二区三

PolylineColorAppearance

帶有顏色屬性和PolylineGeometryGroundPolylineGeometryGeometryInstance實(shí)例的外觀。這允許使用相同的Primitive繪制多個(gè)幾何圖形實(shí)例,每個(gè)實(shí)例的顏色都不同。
new PolylineColorAppearance(options)
Parameters:
options (Object)
Name Description
options.translucent
Boolean
default true
當(dāng)true時(shí),幾何體將顯示為半透明,因此PolylineColorAppearance#renderState啟用了alpha混合。
options.vertexShaderSource
String
可選的glsl頂點(diǎn)明暗器源覆蓋默認(rèn)的頂點(diǎn)明暗器。
options.fragmentShaderSource
String
可選的glsl fragment shader source覆蓋默認(rèn)的fragment shader。
options.renderState
RenderState
可選的渲染狀態(tài)以覆蓋默認(rèn)的渲染狀態(tài)。
Example
// A solid white line segment
var primitive = new bmgl.Primitive({
  geometryInstances : new bmgl.GeometryInstance({
    geometry : new bmgl.PolylineGeometry({
      positions : bmgl.Cartesian3.fromDegreesArray([
        0.0, 0.0,
        5.0, 0.0
      ]),
      width : 10.0,
      vertexFormat : bmgl.PolylineColorAppearance.VERTEX_FORMAT
    }),
    attributes : {
      color : bmgl.ColorGeometryInstanceAttribute.fromColor(new bmgl.Color(1.0, 1.0, 1.0, 1.0))
    }
  }),
  appearance : new bmgl.PolylineColorAppearance({
    translucent : false
  })
});

Members

(static, constant) VERTEX_FORMAT : VertexFormat

所有PolylineColorAppearance實(shí)例都兼容的VertexFormat。這只需要一個(gè)position屬性。

(readonly) closed : Boolean

當(dāng)true時(shí),幾何圖形將關(guān)閉,因此PolylineColorAppearance#renderState啟用背面剔除。這總是false表示PolylineColorAppearance
Default Value: false

(readonly) fragmentShaderSource : String

片段明暗器的glsl源代碼。

material : Material

此屬性是Appearance接口的一部分,但PolylineColorAppearance不使用,因?yàn)槭褂昧送耆远x的片段明暗器。
Default Value: undefined

(readonly) renderState : Object

呈現(xiàn)幾何圖形時(shí)要使用的WebGL固定函數(shù)狀態(tài)。

在構(gòu)造PolylineColorAppearance實(shí)例時(shí),可以顯式定義呈現(xiàn)狀態(tài),或者通過(guò)PolylineColorAppearance#translucent隱式設(shè)置呈現(xiàn)狀態(tài)。

translucent : Boolean

當(dāng)true時(shí),幾何體將顯示為半透明,因此PolylineColorAppearance#renderState啟用了alpha混合。
Default Value: true

(readonly) vertexFormat : VertexFormat

此外觀實(shí)例與之兼容的VertexFormat。幾何體可以有更多的頂點(diǎn)屬性,并且仍然是兼容的(以潛在的性能代價(jià)),但是它不能有更少的頂點(diǎn)屬性。
Default Value: PolylineColorAppearance.VERTEX_FORMAT

(readonly) vertexShaderSource : String

頂點(diǎn)明暗器的glsl源代碼。

Methods

getFragmentShaderSource() → {String}
程序創(chuàng)建完整的glsl片段明暗器源。
getRenderState() → {Object}
創(chuàng)建渲染狀態(tài)。這不是最終的渲染狀態(tài)實(shí)例;相反,它可以包含與上下文中創(chuàng)建的渲染狀態(tài)相同的渲染狀態(tài)屬性的子集。
isTranslucent() → {Boolean}
確定幾何圖形是否基于PolylineColorAppearance#translucent半透明。
主站蜘蛛池模板: 在线日本妇人成熟免费观看 | 极品福利在线 | 日本高清免费h色视频在线观看 | 日本玖玖视频 | 日本成人福利视频 | 毛片免费的 | 六月婷婷久久 | 国产精品亚洲天堂 | 免费看欧美成人性色生活片 | 日本高清色惰www在线视频 | 日韩在线a视频免费播放 | 久久99九九99九九99精品 | 在线视频观看亚洲 | 日本不卡免费高清视频 | 欧美v在线| 久久这里只有精品免费播放 | 国产亚洲精aa在线观看不卡 | 久久久精品波多野结衣 | 99久久精品国产高清一区二区 | 亚洲国产模特在线播放 | 九色九色九色在线综合888 | 免费a在线播放 | 久久精品一区二区三区不卡 | 久久九九热视频 | 久久这里只有精品2 | 国产区精品福利在线社区 | jizz免费视频 | 99久久一区二区精品 | 一级三级黄色片 | 久久国产精品2020盗摄 | 欧美性色xxxxxbbbbb| 免费不卡中文字幕在线 | 激情五月婷婷丁香 | 日本一区二区三区不卡在线看 | 人操人| 免费人成网站永久 | 人人模人人干 | 免费欧美日韩 | 97狠狠操| 日一区二区三区 | 国产黄色三级网站 |