import * as Cesium from '@msign/angularis';
var StageControl = /** @class */ (function () {
    function StageControl(viewer) {
        this._viewer = viewer;
        var collection = viewer.scene.postProcessStages;
        /** *************************************************
         *  silhouette 描边
         ****************************************************/
        var silhouette = collection.add(Cesium['PostProcessStageLibrary'].createSilhouetteStage());
        silhouette.uniforms['color'] = Cesium.Color.BLACK;
        silhouette.enabled = false;
        this._silhouette = silhouette;
        /** *************************************************
         *  lensflare
         ****************************************************/
        var lensflare = collection.add(Cesium['PostProcessStageLibrary'].createLensFlareStage());
        lensflare.enabled = false;
        this._lensflare = lensflare;
        /** *************************************************
         *  lensflare
         ****************************************************/
        var edgedetection = collection.add(Cesium['PostProcessStageLibrary'].createEdgeDetectionStage());
        edgedetection.enabled = false;
        this._edgedetection = edgedetection;
    }
    Object.defineProperty(StageControl.prototype, "isSilhouetted", {
        get: function () {
            return this._silhouette.enabled;
        },
        set: function (val) {
            this._silhouette.enabled = val;
        },
        enumerable: true,
        configurable: true
    });
    return StageControl;
}());
export default StageControl;
