ColorGeometryInstanceAttribute

                每個實例的幾何圖形顏色的值和類型信息。
                new ColorGeometryInstanceAttribute(red, green, blue, alpha)
                Parameters:
                red (Number) (default 1.0) 紅色部分。
                green (Number) (default 1.0) 綠色組件。
                blue (Number) (default 1.0) 藍色部分。
                alpha (Number) (default 1.0) 阿爾法分量。
                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.ColorGeometryInstanceAttribute(red, green, blue, alpha)
                  }
                });
                See:

                Members

                (readonly) componentDatatype : ComponentDatatype

                屬性中每個組件的數據類型,例如ColorGeometryInstanceAttribute#value中的單個元素。
                Default Value: ComponentDatatype.UNSIGNED_BYTE

                (readonly) componentsPerAttribute : Number

                屬性中的組件數,即ColorGeometryInstanceAttribute#value
                Default Value: 4

                (readonly) normalize : Boolean

                truecomponentDatatype為整數格式時,表示當組件作為浮點進行渲染訪問時,應將它們映射到范圍[0,1](無符號)或[-1,1](有符號)中。
                Default Value: true

                value : Uint8Array

                存儲在類型化數組中的屬性值。
                Default Value: [255, 255, 255, 255]

                Methods

                (static) equals(left, right) → {Boolean}
                比較提供的ColorGeometryInstanceAttributes,如果它們相等,則返回true,否則返回false
                Parameters:
                left (ColorGeometryInstanceAttribute) 第一個ColorGeometryInstanceAttribute。
                right (ColorGeometryInstanceAttribute) 第二個ColorGeometryInstanceAttribute。
                (static) fromColor(color) → {ColorGeometryInstanceAttribute}
                根據提供的Color創建新的ColorGeometryInstanceAttribute實例。
                Parameters:
                color (Color) 顏色。
                Example
                var instance = new bmgl.GeometryInstance({
                  geometry : geometry,
                  attributes : {
                    color : bmgl.ColorGeometryInstanceAttribute.fromColor(bmgl.Color.CORNFLOWERBLUE),
                  }
                });
                (static) toValue(color, result) → {Uint8Array}
                將顏色轉換為可用于指定顏色屬性的類型化數組。
                Parameters:
                color (Color) 顏色。
                result (Uint8Array) 存儲結果的數組,如果未定義,將創建一個新實例。
                Example
                var attributes = primitive.getGeometryInstanceAttributes('an id');
                attributes.color = bmgl.ColorGeometryInstanceAttribute.toValue(bmgl.Color.AQUA, attributes.color);
                主站蜘蛛池模板: 国产无遮挡又黄又爽高清视| 成年女人色毛片| 伸进大胸老师里面挤奶吃奶的频| 成人免费观看一区二区| 天堂在线ww小说| 久久久久无码精品国产不卡| 欧美性色欧美a在线观看| 出包王女第四季op| 韩国免费人成在线观看网站| 国产精品综合一区二区三区| а√天堂中文在线资源bt在线| 日本精品少妇一区二区三区| 亚洲国产精品美女| 男女啪啪免费体验区| 国产一区二区视频在线观看| 亚洲欧美校园春色| 在线播放免费人成毛片乱码| 中文字幕在线久热精品| 日韩电影免费在线观看网站| 亚洲欧美日韩中另类在线| 精品国产VA久久久久久久冰| 国产啪精品视频网站免费尤物| 2345成人高清毛片| 天天做天天爱天天综合网| 中文字幕日韩在线观看| 日韩欧美在线播放| 亚洲国产成人va在线观看| 激情图片小说网| 内射一区二区精品视频在线观看| 菠萝蜜网站入口| 国产成人综合在线视频| 26uuu另类亚洲欧美日本| 天天干2018| 一道本在线观看| 无翼乌工口肉肉无遮挡无码18| 九九视频高清视频免费观看| 欧美日韩视频一区三区二区| 伊人久久大香线蕉av五月天 | 色妞色综合久久夜夜| 国产欧美成人免费观看| 4hu四虎永久免在线视|