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

GeometryInstanceAttribute

每個實(shí)例幾何圖形屬性的值和類型信息。
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)組件作為浮點(diǎn)進(jìn)行渲染訪問時,應(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)組件作為浮點(diǎn)進(jìn)行渲染訪問時,應(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中的每三個元素定義一個屬性,因?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]
})
主站蜘蛛池模板: 国产欧美日韩综合在线一 | 日韩图区| 日本不卡一区视频 | 狠狠澡夜夜澡人人爽 | 欧美视频 亚洲视频 | 日本黄页网站在线观看 | 亚洲va中文字幕 | 韩漫秘密教学哔哩哔哩免费 | 97日日碰人人模人人澡 | 国产成人欧美 | 成人中文字幕在线 | 激情综合五月 | 日本大学生免费一级一片 | 波多野结衣在线观看一区二区三区 | 日韩人成免费网站大片 | 欧美三级真做在线观看 | 老子影院午夜理伦手机不卡 | 天天摸天天草 | 激情黄视频 | 午夜视频十八嗯嗯啊免费 | 香港三级台湾三级在线播放徐 | 欧美日韩国产综合一区二区三区 | 亚洲天堂精品在线观看 | 国产做a爰片久久毛片a | 免费精品美女久久久久久久久 | 日本精品视频一视频高清 | 国内精品一区二区三区最新 | 欧美日韩亚洲国内综合网俺 | 亚洲高清在线观看播放 | 日本a在线看 | 1313午夜精品久久午夜片 | 一区毛片 | 免费一级做a爰片久久毛片潮 | 亚洲国产日韩在线观看 | 男女日皮免费视频 | 日本网站视频 | 午夜色福利 | 欧美高清在线观看 | 国产福利在线观看 | 久久久美女 | 清清草视频在线 |