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

ColorGeometryInstanceAttribute

每個實例的幾何圖形顏色的值和類型信息。
new ColorGeometryInstanceAttribute(red, green, blue, alpha)
Parameters:
red (Number) (default 1.0) 紅色部分。
green (Number) (default 1.0) 綠色組件。
blue (Number) (default 1.0) 藍色部分。
alpha (Number) (default 1.0) 阿爾法分量。
Example
var instance = new bmgl.GeometryInstance({
  geometry : bmgl.BoxGeometry.fromDimensions({
    dimensions : new bmgl.Cartesian3(1000000.0, 1000000.0, 500000.0)
  }),
  modelMatrix : bmgl.Matrix4.multiplyByTranslation(bmgl.Transforms.eastNorthUpToFixedFrame(
    bmgl.Cartesian3.fromDegrees(0.0, 0.0)), new bmgl.Cartesian3(0.0, 0.0, 1000000.0), new bmgl.Matrix4()),
  id : 'box',
  attributes : {
    color : new bmgl.ColorGeometryInstanceAttribute(red, green, blue, alpha)
  }
});
See:

Members

(readonly) componentDatatype : ComponentDatatype

屬性中每個組件的數據類型,例如ColorGeometryInstanceAttribute#value中的單個元素。
Default Value: ComponentDatatype.UNSIGNED_BYTE

(readonly) componentsPerAttribute : Number

屬性中的組件數,即ColorGeometryInstanceAttribute#value
Default Value: 4

(readonly) normalize : Boolean

truecomponentDatatype為整數格式時,表示當組件作為浮點進行渲染訪問時,應將它們映射到范圍[0,1](無符號)或[-1,1](有符號)中。
Default Value: true

value : Uint8Array

存儲在類型化數組中的屬性值。
Default Value: [255, 255, 255, 255]

Methods

(static) equals(left, right) → {Boolean}
比較提供的ColorGeometryInstanceAttributes,如果它們相等,則返回true,否則返回false
Parameters:
left (ColorGeometryInstanceAttribute) 第一個ColorGeometryInstanceAttribute。
right (ColorGeometryInstanceAttribute) 第二個ColorGeometryInstanceAttribute。
(static) fromColor(color) → {ColorGeometryInstanceAttribute}
根據提供的Color創建新的ColorGeometryInstanceAttribute實例。
Parameters:
color (Color) 顏色。
Example
var instance = new bmgl.GeometryInstance({
  geometry : geometry,
  attributes : {
    color : bmgl.ColorGeometryInstanceAttribute.fromColor(bmgl.Color.CORNFLOWERBLUE),
  }
});
(static) toValue(color, result) → {Uint8Array}
將顏色轉換為可用于指定顏色屬性的類型化數組。
Parameters:
color (Color) 顏色。
result (Uint8Array) 存儲結果的數組,如果未定義,將創建一個新實例。
Example
var attributes = primitive.getGeometryInstanceAttributes('an id');
attributes.color = bmgl.ColorGeometryInstanceAttribute.toValue(bmgl.Color.AQUA, attributes.color);
主站蜘蛛池模板: 亚洲国产精久久久久久久 | 日韩欧美一卡二区 | 天天做天天玩天天爽天天 | 欧美丝袜foot job | 60岁了天天要小伙子 | 亚洲一区二区成人 | 成人欧美1314www色视频 | 不良小说 | 婷婷综合七月激情啪啪 | 69日本人xxxx16—18 | 久久爽狠狠添AV激情五月 | 操比图片 | 国产精品毛片无码 | 美女又爽又黄免费 | 欧美日韩精品乱国产538 | 爱草视频| 窝窝色资源站 | 国产欧美成人不卡视频 | 欧美二区视频 | 国产我不卡 | 千金肉奴隶在线观看 | 精品欧美 | 日本成熟bbxxxxxxxx | 亚洲 欧美 国产 综合 播放 | 国产精品福利短视在线播放频 | 好男人社区www影院在线观看 | 国产精品馆 | 小舞同人18av黄漫网站 | 嫩草研究| 黑人巨大初黑人解禁作品 | 学校捏奶揉下面污文h | 情趣内衣情趣玩具play | 91成人爽a毛片一区二区 | 性趣味商品推荐 | 4438全国最大免费观看 | 久久99精品涩AV毛片观看 | 国产一区二区三区久久精品 | 国产私人影院 | 色哟哟在线播放 | 日朝欧美亚洲精品 | 国产一区二区三区水野朝阳 |