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

GeometryInstanceAttribute

每個實例幾何圖形屬性的值和類型信息。
new GeometryInstanceAttribute(options)
Parameters:
options (Object)
Name Description
options.componentDatatype
ComponentDatatype
屬性中每個組件的數據類型,例如值中的單個元素。
options.componentsPerAttribute
Number
一個介于1和4之間的數字,用于定義屬性中組件的數量。
options.normalize
Boolean
default false
truecomponentDatatype為整數格式時,表示當組件作為浮點進行渲染訪問時,應將它們映射到范圍[0,1](無符號)或[-1,1](有符號)中。
options.value
Array.<Number>
屬性的值。
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.GeometryInstanceAttribute({
      componentDatatype : bmgl.ComponentDatatype.UNSIGNED_BYTE,
      componentsPerAttribute : 4,
      normalize : true,
      value : [255, 255, 0, 255]
    })
  }
});
Throws
  • DeveloperError : options.componentsPerAttribute必須介于1和4之間。
See:

Members

componentDatatype : ComponentDatatype

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

componentsPerAttribute : Number

一個介于1和4之間的數字,用于定義屬性中組件的數量。例如,具有x、y和z組件的位置屬性將有3個,如代碼示例所示。
Default Value: undefined
Example:
show : new bmgl.GeometryInstanceAttribute({
  componentDatatype : bmgl.ComponentDatatype.UNSIGNED_BYTE,
  componentsPerAttribute : 1,
  normalize : true,
  value : [1.0]
})

normalize : Boolean

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

這通常在使用ComponentDatatype.UNSIGNED_BYTE存儲顏色時使用。

Default Value: false
Example:
attribute.componentDatatype = bmgl.ComponentDatatype.UNSIGNED_BYTE;
attribute.componentsPerAttribute = 4;
attribute.normalize = true;
attribute.value = [
  bmgl.Color.floatToByte(color.red),
  bmgl.Color.floatToByte(color.green),
  bmgl.Color.floatToByte(color.blue),
  bmgl.Color.floatToByte(color.alpha)
];

value : Array.<Number>

存儲在類型化數組中的屬性值。在代碼示例中,values中的每三個元素定義一個屬性,因為componentsPerAttribute為3。
Default Value: undefined
Example:
show : new bmgl.GeometryInstanceAttribute({
  componentDatatype : bmgl.ComponentDatatype.UNSIGNED_BYTE,
  componentsPerAttribute : 1,
  normalize : true,
  value : [1.0]
})
主站蜘蛛池模板: 四虎1515h永久 | 97自拍视频在线观看 | 国产在线观看色 | 国产九九视频在线观看 | 国产精品视频网 | 鸭子玩富婆流白浆视频 | 999jjj在线播放 | 欧洲肥女大肥臀tv | 俄罗斯极品h在线 | 高h全肉动漫在线观看免费 高h辣h双处全是肉军婚 | 精品国产麻豆免费人成网站 | 双子母性本能在线观看 | 精品综合久久久久久8888 | 唯美 清纯 另类 亚洲制服 | 99小视频| 99久久999久久久综合精品涩 | 国产精品麻豆久久99 | 亚洲另类老妇videos | b站免费网站入口 | 国产成人一区二区三区 | 精品在线免费观看视频 | 99精品在线视频 | 婷婷网址 | 色中色破解版 | 99久久精品国产一区二区 | 猛操女人| 久久观看视频 | 久久人妻少妇嫩草AV無碼 | 亚洲黄色成人 | video one 中国按摩 | 亚洲黄色片免费看 | 岛国片免费观看 | 成3d漫二区三区四区 | 34g污奶跳舞 | 欧美亚洲欧美 | 亚洲狠狠综合久久 | 4hc44四虎永久地址链接 | 秋葵丝瓜茄子草莓榴莲樱桃 | 高清不卡日本v在线二区 | 四虎4hu新地址入口 四虎1515h永久 | 国产精品99在线观看 |