亚洲动漫在线观看-亚洲动漫第一页-亚洲丁香婷婷-亚洲丶国产丶欧美一区二区三区-亚洲第一综合网站-亚洲第一永久色

PolylineColorAppearance

帶有顏色屬性和PolylineGeometryGroundPolylineGeometryGeometryInstance實例的外觀。這允許使用相同的Primitive繪制多個幾何圖形實例,每個實例的顏色都不同。
new PolylineColorAppearance(options)
Parameters:
options (Object)
Name Description
options.translucent
Boolean
default true
true時,幾何體將顯示為半透明,因此PolylineColorAppearance#renderState啟用了alpha混合。
options.vertexShaderSource
String
可選的glsl頂點明暗器源覆蓋默認的頂點明暗器。
options.fragmentShaderSource
String
可選的glsl fragment shader source覆蓋默認的fragment shader。
options.renderState
RenderState
可選的渲染狀態以覆蓋默認的渲染狀態。
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實例都兼容的VertexFormat。這只需要一個position屬性。

(readonly) closed : Boolean

true時,幾何圖形將關閉,因此PolylineColorAppearance#renderState啟用背面剔除。這總是false表示PolylineColorAppearance
Default Value: false

(readonly) fragmentShaderSource : String

片段明暗器的glsl源代碼。

material : Material

此屬性是Appearance接口的一部分,但PolylineColorAppearance不使用,因為使用了完全自定義的片段明暗器。
Default Value: undefined

(readonly) renderState : Object

呈現幾何圖形時要使用的WebGL固定函數狀態。

在構造PolylineColorAppearance實例時,可以顯式定義呈現狀態,或者通過PolylineColorAppearance#translucent隱式設置呈現狀態。

translucent : Boolean

true時,幾何體將顯示為半透明,因此PolylineColorAppearance#renderState啟用了alpha混合。
Default Value: true

(readonly) vertexFormat : VertexFormat

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

(readonly) vertexShaderSource : String

頂點明暗器的glsl源代碼。

Methods

getFragmentShaderSource() → {String}
程序創建完整的glsl片段明暗器源。
getRenderState() → {Object}
創建渲染狀態。這不是最終的渲染狀態實例;相反,它可以包含與上下文中創建的渲染狀態相同的渲染狀態屬性的子集。
isTranslucent() → {Boolean}
確定幾何圖形是否基于PolylineColorAppearance#translucent半透明。
主站蜘蛛池模板: 欧美3d怪物交videos网站 | 免费看美女被靠到爽 | 1313午夜精品理伦片 | 从后面撕开老师的丝袜动态图 | 人人爽人人射 | 爱情岛论坛亚洲一号路线 | 亚洲天堂中文 | 日本高清视频一区二区 | 精品久久久噜噜噜久久7 | 欧美精品亚洲精品日韩1818 | 日韩在线a视频免费播放 | 午夜伦伦电影理论片费看 | 久久最新地址获取 | 男人捅女人漫画 | 久久久久伊人 | 丝瓜茄子绿巨人秋葵榴莲污 | 国内外精品免费视频 | 韩国甜性涩爱在线播放 | 射逼网站 | 91aaa免费免费国产在线观看 | 欧美一级级a在线观看 | 国产乱码免费卡1卡二卡3卡四 | 三级无删减高清在线影院 | 高清欧美videossexo免费 | 亚洲欧美一区二区三区在线观看 | 天天舔天天操天天干 | 亚洲国产三级在线观看 | 操bb视频| 极品美女aⅴ高清在线观看 极品ts赵恩静和直男激战啪啪 | 久久伊人影院 | 日本中文字幕二区三区 | 久久午夜夜伦痒痒想咳嗽P 久久无码AV亚洲精品色午夜麻豆 | 女仆掀起蕾丝裙被打屁股作文 | 黄a 大片a v 永久免费 | 色老板美国在线观看 | 亚洲 欧美 国产 在线 日韩 | 欧美午夜寂寞影院安卓列表 | 狠狠撸在线影院 | 亚洲AV蜜桃永久无码精品无码网 | 超高清欧美同性videos | 日韩欧美在线视频一区二区 |