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

GeometryAttribute

幾何屬性的值和類型信息。Geometry通常包含一個(gè)或多個(gè)屬性。所有屬性一起構(gòu)成幾何體的頂點(diǎn)。
new GeometryAttribute(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.values
TypedArray
存儲(chǔ)在類型化數(shù)組中的屬性值。
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

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

componentsPerAttribute : Number

一個(gè)介于1和4之間的數(shù)字,用于定義屬性中組件的數(shù)量。例如,具有x、y和z組件的位置屬性將有3個(gè),如代碼示例所示。
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

當(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.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

存儲(chǔ)在類型化數(shù)組中的屬性值。在代碼示例中,values中的每三個(gè)元素定義一個(gè)屬性,因?yàn)?code>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
]);
主站蜘蛛池模板: 欧美videossex瑜伽 | 久久高清一区二区三区 | 免费国产成高清人在线视频 | 亚洲欧美v视色一区二区 | 欧美三级在线播放 | 天堂在线国产 | 亚洲天堂免费在线 | 男人天堂免费视频 | 久久综合色播 | 日本a级黄色大片 | 日本xxxx屁股xxxx| 毛片免费视频网站 | 99视频精品全部 在线 | 国产午夜伦伦伦午夜伦 | 欧美激情xxxx性bbbb | 在线播放wwww | 99re 视频 | 国产精选在线 | 欧美一区二区三区国产精品 | 亚洲综合色播 | 全部免费特黄特色大片视频 | 九草在线 | 人人干日日操 | 麻豆软件 | 国产精品亚洲专区在线播放 | 精品视频999 | 视频一区视频二区在线观看 | 欧美成人免费高清视频 | 青青在线视频免费看观看 | 欧美5060| 日本精品高清一区二区不卡 | 国产人妖ts在线观看网站 | 日本xxx片免费高清在线 | 日本黄色免费在线 | 久久精品a | 午夜一区二区在线观看 | 精品欧美高清一区二区免费 | 欧美精品做人一级爱免费 | 人人澡人人添 | 午夜视频在线观看www中文 | 欧美二区三区 |