国产久_亚欧精品一区_久久亚洲美女_99精品在线观看_日韩成人三级_久久精品久久久久

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);
主站蜘蛛池模板: 亚洲综合成人亚洲 | 婷婷久草| 日本大码a∨欧美在线 | 国产做a爱一及毛片久久 | 亚洲免费色 | 男人资源站 | 国产一级淫片91aaa激情 | 国产成人精品在线 | 中文字幕av在线一二三区 | 欧美三级一区二区三区 | 美女内射毛片在线看3d | 男人天堂成人网 | 狠狠淫| 俺也去综合 | 欧美日韩在线播放视频 | 久久爆操| 国产成人在线播放视频 | 久久在线免费 | 黄站免费 | 天天狠狠 | 成人天堂视频在线观看 | 国产三区在线观看 | 亚洲一区二区播放 | 天天澡天天添天天摸av | 中文字幕3区 | 中国国语毛片免费观看视频 | 一级片黄 | 日韩欧美网 | 免费福利在线 | 黄页网址大全免费 | 黄色www视频 | 免费黄色软件. | 91精品一区二区三区蜜臀 | 国产a黄 | 中文字幕免费在线看线人动作大片 | 日韩精品在线免费观看视频 | 国产精品一区二区久久精品爱微奶 | 日韩精品中文在线 | 日韩av三区| 韩国视频一区二区三区 | 日日噜噜噜噜人人爽日本精品 |