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

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);
主站蜘蛛池模板: 日本xxxx在线观看 | 日本高清www片 | 视频一区 在线 | 欧美精品久久久久久久影视 | 国产高清精品一区 | 天天摸天天做天天爽水多 | 一级一级 a爱片免费视频 | 免费 黄 色 人成 视频 | 91色偷偷| 婷婷人人爽人人做人人添 | 免费 高清 日本视频 | 亚洲成a人片在线观看中文动漫 | 久久亚洲精品中文字幕亚瑟 | 久久精品无码一区二区日韩av | 欧美大片免费 | 怡红院免费va男人的天堂 | 免费一级特黄特色大片在线 | 精品免费久久久久久成人影院 | 国产成人一区二区小说 | 久久精品国产波多野结衣 | 日本a级精品一区二区三区 日本a级免费 | 曰本三级黄色片 | 欧美大片aaa| 国产伦精品一区二区三区在线观看 | 欧美在线播放 | 欧美xx网站 | 青春草在线观看精品免费视频 | 日本色黄视频 | 国产精品久久久久久一区二区 | 2022中文字字幕久亚洲 | jizz在线观看免费视频 | 国模青青2013.01.27合集 | 激情图片小说 | 99精品久久99久久久久久 | 国产网曝手机视频在线观看 | 日本伦理片网站 | 国产a级特黄的片子视频 | 日韩在线高清 | 97热久久免费频精品99国产成人 | 国产剧情片视频资源在线播放 | 一本久久a久久精品vr综合 |