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
                ]);
                主站蜘蛛池模板: 日本不卡一二三| 1819sextub欧美中国| 激情综合色五月丁香六月亚洲| 国内精品伊人久久久久网站| 久久人人妻人人做人人爽| 精品久久中文网址| 国语自产偷拍精品视频偷| 亚洲av永久无码精品水牛影视| 精品国产av一二三四区| 国产麻豆精品免费密入口| 中文字幕日韩一区二区三区不 | 一级黄色片网站| 日韩视频在线观看| 另类国产ts人妖视频网站| 999无色码中文字幕| 日韩视频在线播放| 亚洲精品无码不卡在线播放 | 人妻丝袜无码专区视频网站| 2021av在线视频| 小12箩利洗澡无码视频网站| 亚洲国产香蕉视频欧美| 蜜桃成熟之蜜桃仙子| 天堂а√8在线最新版在线| 五月婷日韩中文字幕| 精品国产三级a∨在线欧美| 国产女人和拘做受视频免费| 一个人hd高清在线观看免费直播 | 国产人妖ts在线观看免费视频| www.怡红院| 日产精品1区至六区有限公司| 亚洲色成人WWW永久在线观看| 色吊丝av中文字幕| 国产视频你懂得| 久久久久亚洲av成人网人人软件| 熟妇人妻中文字幕无码老熟妇| 四虎永久地址4hu2019| 91亚洲国产成人久久精品网站| 小婷又紧又深又滑又湿好爽| 久久久久国产一区二区三区| 极品色天使在线婷婷天堂亚洲 | 国产乡下三级全黄三级bd|