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

GeometryAttribute

幾何屬性的值和類型信息。Geometry通常包含一個或多個屬性。所有屬性一起構成幾何體的頂點。
new GeometryAttribute(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.values
TypedArray
存儲在類型化數組中的屬性值。
Example
var geometry = new bmgl.Geometry({
  attributes : {
    position : new bmgl.GeometryAttribute({
      componentDatatype : bmgl.ComponentDatatype.FLOAT,
      componentsPerAttribute : 3,
      values : new Float32Array([
        0.0, 0.0, 0.0,
        7500000.0, 0.0, 0.0,
        0.0, 7500000.0, 0.0
      ])
    })
  },
  primitiveType : bmgl.PrimitiveType.LINE_LOOP
});
Throws
  • DeveloperError : options.componentsPerAttribute必須介于1和4之間。
See:

Members

componentDatatype : ComponentDatatype

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

componentsPerAttribute : Number

一個介于1和4之間的數字,用于定義屬性中組件的數量。例如,具有x、y和z組件的位置屬性將有3個,如代碼示例所示。
Default Value: undefined
Example:
attribute.componentDatatype = bmgl.ComponentDatatype.FLOAT;
attribute.componentsPerAttribute = 3;
attribute.values = new Float32Array([
  0.0, 0.0, 0.0,
  7500000.0, 0.0, 0.0,
  0.0, 7500000.0, 0.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.values = new Uint8Array([
  bmgl.Color.floatToByte(color.red),
  bmgl.Color.floatToByte(color.green),
  bmgl.Color.floatToByte(color.blue),
  bmgl.Color.floatToByte(color.alpha)
]);

values : TypedArray

存儲在類型化數組中的屬性值。在代碼示例中,values中的每三個元素定義一個屬性,因為componentsPerAttribute為3。
Default Value: undefined
Example:
attribute.componentDatatype = bmgl.ComponentDatatype.FLOAT;
attribute.componentsPerAttribute = 3;
attribute.values = new Float32Array([
  0.0, 0.0, 0.0,
  7500000.0, 0.0, 0.0,
  0.0, 7500000.0, 0.0
]);
主站蜘蛛池模板: 欧美成人中文字幕 | 国产精品第一 | 厨房里摸着乳丰满在线观看 | 星空无限传媒xk8027穆娜 | 91香蕉在线 | 国产成人精品综合在线观看 | 黑帮少爷爱上我第8集最新 荷兰精品女人性hd 和日本免费不卡在线v | 国产男人天堂 | 舔穴吸奶| 亚洲国产免费观看视频 | eee在线播放成人免费 | 欧美18一19性高清hd4k | 农村老妇1乱69系列小说 | 精品视频99| 男生操女生动态图 | 大胸美女被c | 色哟哟在线观看 | 九九热在线视频观看这里只有精品 | 国语精彩对白2021 | 国产区成人综合色在线 | 久久91精品国产91 | freesex 18 19处xx| 国内精品久久久久影院中国 | 91麻豆精东果冻天美传媒老狼 | 欧美亚洲另类在线观看 | japanesen女同| 欧美精品一区二区在线观看 | 免费永久观看美女视频网站网址 | 亚洲日本中文字幕天堂网 | 国产日产国无高清码2020 | 欧美一级专区免费大片俄罗斯 | caopo视频进入离开 | 亚洲视频999 | 美女被的在线网站91 | 久草在线草a免费线看 | 亚洲区在线播放 | 暖暖免费高清完整版观看日本 | 国产精品99在线观看 | 天天久久综合 | 天天爽天天 | 色五婷婷|