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

顯示源代碼
擴散效果
 開發文檔
            <!DOCTYPE html>

<html>
<head>
    <meta charset='UTF-8'/>
    <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
    <link  rel='stylesheet'/>
    <script src='http://ua.bigemap.com:30081/bmsdk/bigemap-gl.js/v1.1.0/bigemap-gl.js'></script>
    <style>
        body {
            margin: 0;
            padding: 0;
        }

        #container {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
        }
            .bmgl-widget-credits{display:none}
    </style>
    <title>part_test</title>
</head>
<body>

<div id='container'></div>

<script>
    bmgl.Config.HTTP_URL = 'http://ua.bigemap.com:30081/bmsdk/';
    
    var viewer = new bmgl.Viewer('container', {terrainId: 'bigemap.9af15d8e',mapId:'bigemap.dc-satellite', terrainExaggeration: 5,requestRenderMode:false});
        viewer.scene.globe.depthTestAgainstTerrain=false;

    /*
      流動紋理線
       color 顏色
       duration 持續時間 毫秒
    */
    function EllipsoidFadeMaterialProperty(color, duration) {
        this._definitionChanged = new bmgl.Event();
        this._color = undefined;
        this._colorSubscription = undefined;
        this.color = color;
        this.duration = duration;
        this._time = (new Date()).getTime();
    }
    bmgl.defineProperties(EllipsoidFadeMaterialProperty.prototype, {
        isConstant: {
            get: function () {
                return false;
            }
        },
        definitionChanged: {
            get: function () {
                return this._definitionChanged;
            }
        },
        color: bmgl.createPropertyDescriptor('color')
    });
    EllipsoidFadeMaterialProperty.prototype.getType = function (time) {
        return 'EllipsoidFade';
    }
    EllipsoidFadeMaterialProperty.prototype.getValue = function (time, result) {
        if (!bmgl.defined(result)) {
            result = {};
        }
        result.color = bmgl.Property.getValueOrClonedDefault(this._color, time, bmgl.Color.WHITE, result.color);

        result.time = (((new Date()).getTime() - this._time) % this.duration) / this.duration;
        return result;
    }
    EllipsoidFadeMaterialProperty.prototype.equals = function (other) {
        return this === other ||
            (other instanceof EllipsoidFadeMaterialProperty &&
                bmgl.Property.equals(this._color, other._color))
    }
    bmgl.EllipsoidFadeMaterialProperty = EllipsoidFadeMaterialProperty;
    bmgl.Material.EllipsoidFadeType = 'EllipsoidFade';
    bmgl.Material.EllipsoidFadeSource =
        "czm_material czm_getMaterial(czm_materialInput materialInput)\n" +
        "{\n" +
        "czm_material material = czm_getDefaultMaterial(materialInput);\n" +
        "material.diffuse = 1.5 * color.rgb;\n" +
        "vec2 st = materialInput.st;\n" +
        "float dis = distance(st, vec2(0.5, 0.5));\n" +
        "float per = fract(time);\n" +
        "if(dis > per * 0.5){\n" +
        "material.alpha = 0.0;\n"+
        "discard;\n" +
        "}else {\n" +
        "material.alpha = color.a  * dis / per / 1.0;\n" +
        "}\n" +
        "return material;\n" +
        "}";
    bmgl.Material._materialCache.addMaterial(bmgl.Material.EllipsoidFadeType, {
        fabric: {
            type: bmgl.Material.EllipsoidFadeType,
            uniforms: {
                color: new bmgl.Color(1.0, 0.0, 0.0, 1),
                time: 0
            },
            source: bmgl.Material.EllipsoidFadeSource
        },
        translucent: function (material) {
            return true;
        }
    });

    viewer.entities.add({
        name: 'EllipsoidFade',
        position: bmgl.Cartesian3.fromDegrees(104.0, 30.0, 100.0),
        ellipse: {
            height: 0,
            semiMinorAxis: 30000.0,
            semiMajorAxis: 30000.0,
            material: new bmgl.EllipsoidFadeMaterialProperty(bmgl.Color.BLUE, 2000)
        }
    });
    viewer.zoomTo(viewer.entities);
</script>
</body>
</html>                                                                                                                                                                                                                                                                                                                                                                                                                                                        
主站蜘蛛池模板: 欧美亚洲国产另类 | 大陆国产精品视频 | china精品对白普通话 | 九九99九九精彩网站 | 激情艳妇 | japanesemoms乱熟 | 污影院| 色老板视频在线 | 日韩专区 | 波多野结衣久久国产精品 | 亚洲激情视频在线 | 毛片大全免费看 | 被强上后我成瘾了小说 | 色图片小说 | avidolz性教师| 天天久久综合网站 | 四虎影视永久在线精品免费 | katsuniav在线播放 | 久久综合给合久久狠狠狠… | 好男人免费高清在线观看2019 | 亚洲成av人片天堂网 | 国产成人精品一区二三区 | 特黄特色大片免费高清视频 | 欧美日韩视频在线一区二区 | 女人与d0gxxx | 精品在线一区 | 精品午夜视频 | 四虎免费影院4hu永久免费 | 日韩毛片免费线上观看 | 青草免费在线观看 | 午夜伦理电影在线观免费 | 啪啪模拟器 | 娇小异类videos | 精品国产欧美一区二区五十路 | 激情影院网站 | sedog在线长片| 香蕉在线精品亚洲第一区 | 96免费精品视频在线 | 秘书小说 | 欧美视频一二三区 | 天天做天天爱天天爽综合区 |