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

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);
主站蜘蛛池模板: 亚洲欧美日韩成人一区在线 | 高肉h护士办公室play | 美女扒开尿口让男生添 漫画 | 久久99亚洲AV无码四区碰碰 | 无删减影视免费观看 | 爱福利视频一区 | 国产精品视频免费一区二区三区 | 特黄一级大片 | 超级乱淫 不详 | 手机免费在线视频 | 好大好湿好硬好爽好深免费视频 | 欧美操屁股 | 男模chinesegayxxxx | 龟甲情感超市全文阅读 小说 | 成人精品网 | 精品一成人岛国片在线观看 | 国产精品一区二区不卡的视频 | 美国大片成人性网 | 天天色国产 | 亚洲国产韩国欧美在线不卡 | 全肉一女n男np高h乳 | fuqer老师| 精品国语国产在线对白 | 91视频完整版 | girlfriend动漫在线播放 | 久久九九有精品国产23百花影院 | 亚洲国产在线观看免费视频 | 日本高清在线播放一区二区三区 | 男女操bb | 成人福利在线 | 久久这里都是精品 | 91九色丨porny丨制服 | 日本成人高清视频 | 国色天香社区视频免费观看3 | 无人知晓小说姜璟免费阅读 | 色婷婷激婷婷深爱五月老司机 | 99re8在线精品视频免费播放 | 亚洲视频国产精品 | 精品国产原创在线观看视频 | 青青国产成人久久激情911 | 湖南美女被黑人4p到惨叫 |