@vtx/cs-map
Version:
React components for Vortex
68 lines (66 loc) • 2.51 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = ConeGlowBottomRotateCircleMaterialProperty;
var _cesium = require("cesium");
var _Texture = require("./Texture.js");
function ConeGlowBottomRotateCircleMaterialProperty(color) {
this._definitionChanged = new _cesium.Event();
this._color = undefined;
this._colorSubscription = undefined;
this.color = color;
}
Object.defineProperties(ConeGlowBottomRotateCircleMaterialProperty.prototype, {
isConstant: {
get: function get() {
return false;
}
},
definitionChanged: {
get: function get() {
return this._definitionChanged;
}
},
color: (0, _cesium.createPropertyDescriptor)("color")
});
ConeGlowBottomRotateCircleMaterialProperty.prototype.getType = function () {
return "ConeGlowBottomRotateCircle";
};
ConeGlowBottomRotateCircleMaterialProperty.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.ConeGlowBottomRotateCircleImage;
return result;
};
ConeGlowBottomRotateCircleMaterialProperty.prototype.equals = function (other) {
return this === other || other instanceof ConeGlowBottomRotateCircleMaterialProperty && _cesium.Property.equals(this._color, other._color);
};
_cesium.Material.ConeGlowBottomRotateCircleType = "ConeGlowBottomRotateCircle";
_cesium.Material.ConeGlowBottomRotateCircleImage = (0, _Texture.createBottomRotateCircleTexture)();
_cesium.Material.ConeGlowBottomRotateCircleSource = "czm_material czm_getMaterial(czm_materialInput materialInput)\n\
{\n\
czm_material material = czm_getDefaultMaterial(materialInput);\n\
vec2 st = materialInput.st;\n\
vec4 colorImage = texture2D(image, vec2(st ));\n\
material.diffuse = 2.5 * color.rgb ;\n\
material.alpha = colorImage.a ;\n\
return material;\n\
}";
_cesium.Material._materialCache.addMaterial(_cesium.Material.ConeGlowBottomRotateCircleType, {
fabric: {
type: _cesium.Material.ConeGlowBottomRotateCircleType,
uniforms: {
color: new _cesium.Color(1.0, 0.0, 0.0, 0.5),
image: _cesium.Material.ConeGlowBottomRotateCircleImage,
time: 0
},
source: _cesium.Material.ConeGlowBottomRotateCircleSource
},
translucent: function translucent() {
return true;
}
});
//# sourceMappingURL=ButtomRotateCircle.js.map