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

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
]);
主站蜘蛛池模板: 亚洲国产精品嫩草影院久久 | 亚洲人成毛片线播放 | 午夜日本大胆裸艺术 | 青青久久精品国产 | 女人叉开腿让男人捅 | 精品国产自在现线拍国语 | 2021国产麻豆剧传媒剧情动漫 | 国产亚洲一区二区三区 | 护士让我吃奶我扒她奶 | 亚洲欧美精品久久 | 四虎成人国产精品视频 | 人人艹在线视频 | 无码精品一区二区三区免费视频 | 欧美一级视频免费观看 | 亚洲欧洲综合 | 羞羞麻豆国产精品1区2区3区 | 欧美专区在线观看 | 爱草影院 | 91肥熟国产老肥熟在线 | www.四虎在线观看 | 小早川怜子亚洲综合中文字幕 | 亚洲不卡视频在线观看 | 91一区二区在线观看精品 | 热久久最新| 星空无限传媒xk8046 | 合欢视频免费 | 亚洲国产天堂久久综合网站 | 欧美日韩精品一区二区三区高清视频 | 情趣内衣在线观看 | 欧美丝袜videohd | 校园春色偷拍自拍 | 2019天天干夜夜操 | jizz中国jizz老师水多 | 好妈妈7在线观看高清 | chinese军人@gay| 好妈妈7在线观看高清 | 欧美伊香蕉久久综合类网站 | 和两个男人玩3p好爽视频 | 亚洲精品 欧美 | 第一次处破女18分钟 | 国内精品91最新在线观看 |