高清在线一区二区_激情网在线观看_激情一区二区三区_精品中文一区_亚洲中字幕_亚洲天堂一区

GeometryInstanceAttribute

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

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

componentsPerAttribute : Number

一個介于1和4之間的數(shù)字,用于定義屬性中組件的數(shù)量。例如,具有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

當(dāng)truecomponentDatatype為整數(shù)格式時,表示當(dāng)組件作為浮點進行渲染訪問時,應(yīng)將它們映射到范圍[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>

存儲在類型化數(shù)組中的屬性值。在代碼示例中,values中的每三個元素定義一個屬性,因為componentsPerAttribute為3。
Default Value: undefined
Example:
show : new bmgl.GeometryInstanceAttribute({
  componentDatatype : bmgl.ComponentDatatype.UNSIGNED_BYTE,
  componentsPerAttribute : 1,
  normalize : true,
  value : [1.0]
})
主站蜘蛛池模板: 国产在线精品一区二区夜色 | 在线观看第一区 | 欧美日韩影视 | 九九热精品在线 | 97中文字幕第一一一页 | 国产免费视频一区二区裸体 | freexxxx性女hd性吃奶 | 国产资源在线观看视频 | 一及毛片视频 | 久久狠狠高潮亚洲精品 | 九九热免费视频在线观看 | 亚洲一级电影在线观看 | 国产免费一区二区三区在线能观看 | 中文在线国产 | 免费视频www在线观看 | 国产精品成人一区二区三区吃奶 | 91网视频 | 凹凸成人精品亚洲精品密奴 | 黄色网址免费进入 | 国产成人在线免费视频 | 成人毛片视频在线观看 | 免费a级黄色片 | 精精国产xxxx视频在线野外 | 日韩一级片黄色 | 日韩av在线网址 | 91情侣偷在线精品国产 | 国产在线观看免费视频软件 | 久久久久亚洲a | 天天草天天干天天 | 国产三级午夜理伦三级 | 一级在线观看视频 | 一区二区三区日本在线观看 | 大胆在线日本aⅴ免费视频 美国黄色毛片女人性生活片 | 九九黄色 | 精品久久久久久久久久久aⅴ | 黄色的视频免费观看 | 亚洲成人激情在线 | 国产1区2区3区中文字幕 | 国产亚洲精品成人a | 全黄裸片武则天一级第4季 偿还电影免费看 | 欧美日韩艺术电影在线 |