@vtx/cs-map
Version:
React components for Vortex
60 lines (58 loc) • 2.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = ConeGlowBottomCircleMaterialProperty;
var _cesium = require("cesium");
var _Texture = require("./Texture.js");
function ConeGlowBottomCircleMaterialProperty(color) {
this._definitionChanged = new _cesium.Event();
this._color = undefined;
this._colorSubscription = undefined;
this.color = color;
}
Object.defineProperties(ConeGlowBottomCircleMaterialProperty.prototype, {
isConstant: {
get: function get() {
return false;
}
},
definitionChanged: {
get: function get() {
return this._definitionChanged;
}
},
color: (0, _cesium.createPropertyDescriptor)("color")
});
ConeGlowBottomCircleMaterialProperty.prototype.getType = function () {
return "ConeGlowBottomCircle";
};
ConeGlowBottomCircleMaterialProperty.prototype.getValue = function (time, result) {
if (!(0, _cesium.defined)(result)) {
result = {};
}
result.color = _cesium.Property.getValueOrClonedDefault(this._color, time, _cesium.Color.WHITE, result.color);
result.image = _cesium.Material.ConeGlowBottomCircleImage;
return result;
};
ConeGlowBottomCircleMaterialProperty.prototype.equals = function (other) {
return this === other || other instanceof ConeGlowBottomCircleMaterialProperty && _cesium.Property.equals(this._color, other._color);
};
_cesium.Material.ConeGlowBottomCircleType = "ConeGlowBottomCircle";
_cesium.Material.ConeGlowBottomCircleImage = (0, _Texture.createBottomCircleTexture)();
_cesium.Material.ConeGlowBottomCircleSource = "czm_material czm_getMaterial(czm_materialInput materialInput) {\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture2D(image, vec2(st));\n material.alpha = colorImage.a * color.a;\n material.diffuse = 1.5* color.rgb;\n return material;\n }";
_cesium.Material._materialCache.addMaterial(_cesium.Material.ConeGlowBottomCircleType, {
fabric: {
type: _cesium.Material.ConeGlowBottomCircleType,
uniforms: {
color: new _cesium.Color(1.0, 0.0, 0.0, 0.5),
image: _cesium.Material.ConeGlowBottomCircleImage,
time: 0
},
source: _cesium.Material.ConeGlowBottomCircleSource
},
translucent: function translucent() {
return true;
}
});
//# sourceMappingURL=BottomCircle.js.map