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

GeometryInstanceAttribute

每個(gè)實(shí)例幾何圖形屬性的值和類型信息。
new GeometryInstanceAttribute(options)
Parameters:
options (Object)
Name Description
options.componentDatatype
ComponentDatatype
屬性中每個(gè)組件的數(shù)據(jù)類型,例如值中的單個(gè)元素。
options.componentsPerAttribute
Number
一個(gè)介于1和4之間的數(shù)字,用于定義屬性中組件的數(shù)量。
options.normalize
Boolean
default false
當(dāng)truecomponentDatatype為整數(shù)格式時(shí),表示當(dāng)組件作為浮點(diǎn)進(jìn)行渲染訪問時(shí),應(yīng)將它們映射到范圍[0,1](無符號(hào))或[-1,1](有符號(hào))中。
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

屬性中每個(gè)組件的數(shù)據(jù)類型,例如GeometryInstanceAttribute#value中的單個(gè)元素。
Default Value: undefined

componentsPerAttribute : Number

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

normalize : Boolean

當(dāng)truecomponentDatatype為整數(shù)格式時(shí),表示當(dāng)組件作為浮點(diǎn)進(jìn)行渲染訪問時(shí),應(yīng)將它們映射到范圍[0,1](無符號(hào))或[-1,1](有符號(hào))中。

這通常在使用ComponentDatatype.UNSIGNED_BYTE存儲(chǔ)顏色時(shí)使用。

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>

存儲(chǔ)在類型化數(shù)組中的屬性值。在代碼示例中,values中的每三個(gè)元素定義一個(gè)屬性,因?yàn)?code>componentsPerAttribute為3。
Default Value: undefined
Example:
show : new bmgl.GeometryInstanceAttribute({
  componentDatatype : bmgl.ComponentDatatype.UNSIGNED_BYTE,
  componentsPerAttribute : 1,
  normalize : true,
  value : [1.0]
})
主站蜘蛛池模板: 欧美日本在线 | 人人干日日干 | 韩国av不卡| 久久久久久国产视频 | 亚州综合网 | 六月婷婷激情网 | 中国一级毛片在线观看 | 国产精品久久久久久模特 | 日本人 xxx69 视频 | 亚洲视频在线免费观看 | 国产九色 | 亚洲成人综合在线 | a级片一区二区 | 日韩欧美国产成人 | 国产aaaaaa | 日韩欧美一二三区 | 日韩电影黄 | 亚洲毛片在线看 | 精品欧美一区二区三区 | 国产成人资源 | 精品一区二区在线播放 | 少妇一级淫片免费放播放 | 日本午夜无人区毛片私人影院 | 在线观看成人免费视频 | 91九色porny最新首页 | 中国亚洲gvgay视频在线观看 | 日韩成人短视频 | 香蕉影音 | 成人国产精品色哟哟 | 亚洲资源在线播放 | 草久网| 99产精品成人啪免费网站 | 亚洲精品日韩综合观看成人91 | 免费观看淫www视频 免费观看中文字幕 | 人人干人人看 | 日韩毛片网站 | 午夜精品一区二区三区免费 | 年轻母亲2| 免费一看一级毛片 | av在线不卡播放 | 一级片在线视频 |