国产久_亚欧精品一区_久久亚洲美女_99精品在线观看_日韩成人三级_久久精品久久久久

顯示源代碼
擴散效果
 開發文檔
            <!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.dc-terrain',mapId:'bigemap.dc-tian-w-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>                                                                                                                                                                                                                                                                                                                                                                                                                                                        
主站蜘蛛池模板: 日韩黄色网页 | 成人h精品动漫一区二区三区 | 黄色在线免费观看网站 | 日本韩国欧美在线 | 午夜时刻免费实验区观看 | 伊人tv| 日韩三级黄色 | 亚洲电影免费观看国语版 | 欧美日韩一区二区在线观看 | 国产成人综合网 | 无毛内射| 欧美成人精品 | 亚洲欧美日韩高清 | 久久免费观看一级毛片 | 91在线视频免费看 | 国产精品视频网站 | 国产精品1 | 欧美综合在线观看 | 日韩免费片 | 美女一区二区三区视频 | 午夜在线观看视频 | 成人免费网站 | 亚洲伦理在线观看 | 免费福利视频在线观看 | 久草色在线 | 天天做天天操 | 亚洲快播电影网 | 亚洲欧美日韩国产精品 | 香蕉国产片一级一级一级一级 | 久久综合狠狠综合久久综合88 | 国产三级在线视频 一区二区三区 | 日韩成人免费在线视频 | 成年人免费网站在线观看 | 成年视频在线 | ww又激又色又爽又免费视频 | 看全色黄大色黄大片女一次牛 | 天天拍天天干 | 天天操天天草 | 国产成人精品视频 | 美色影院 | 天天做天天爱天天综合色 |