GeometryInstanceAttribute

                每個(gè)實(shí)例幾何圖形屬性的值和類型信息。
                new GeometryInstanceAttribute(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.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

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

                componentsPerAttribute : Number

                一個(gè)介于1和4之間的數(shù)字,用于定義屬性中組件的數(shù)量。例如,具有x、y和z組件的位置屬性將有3個(gè),如代碼示例所示。
                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ù)格式時(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.value = [
                  bmgl.Color.floatToByte(color.red),
                  bmgl.Color.floatToByte(color.green),
                  bmgl.Color.floatToByte(color.blue),
                  bmgl.Color.floatToByte(color.alpha)
                ];

                value : Array.<Number>

                存儲(chǔ)在類型化數(shù)組中的屬性值。在代碼示例中,values中的每三個(gè)元素定義一個(gè)屬性,因?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]
                })
                主站蜘蛛池模板: 九九热在线视频播放 | 美女隐私免费视频看| 国产资源中文字幕| 中国毛片免费观看| 最近最新中文字幕免费的一页| 免费国产黄网站在线观看视频| 青青青青手机在线观看| 国产精品综合一区二区三区| 一区二区三区影院| 日本免费一区二区三区最新| 亚洲国产精品无码久久一线| 看黄a大片免费| 国产一级片播放| 欧美精品www| 国产高清乱理论片在线看| 一级做性色a爰片久久毛片| 日韩a级片在线观看| 亚洲午夜在线一区| 狠狠干视频网站| 啪啪调教所29下拉式免费阅读| 国产4tube在线播放| 国产美女在线播放| а√天堂中文最新版地址| 日本24小时www| 九九视频精品在线| 欧美日韩国产成人高清视频| 免费一级黄色录像影片| 老熟妇仑乱一区二区视頻| 国产成人综合亚洲绿色| 337p欧美日本超大胆艺术裸| 天天躁狠狠躁狠狠躁夜夜躁| 中文字幕在线播| 日本精品少妇一区二区三区| 亚洲五月激情网| 欧美综合自拍亚洲综合图| 免费国产精品视频| 美女张开腿让男人桶国产 | 国产大片91精品免费观看男同| 18国产精品白浆在线观看免费| 天堂在线观看中文字幕| 一线高清视频在线观看www国产|