"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getTrailPolylineMaterial = void 0;
var glsl = "\n  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(fract((st.s - speed * czm_frameNumber * 0.001)), st.t));\n    material.alpha = colorImage.a;\n    material.diffuse = colorImage.rgb;\n    return material;\n  }";
var getTrailPolylineMaterial = function getTrailPolylineMaterial(image) {
  var speed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
  return new Cesium.Material({
    strict: false,
    fabric: {
      uniforms: {
        image: image,
        speed: speed
      },
      source: glsl
    },
    translucent: function translucent() {
      return true;
    },
    minificationFilter: Cesium.TextureMinificationFilter.LINEAR,
    magnificationFilter: Cesium.TextureMagnificationFilter.LINEAR
  });
};
exports.getTrailPolylineMaterial = getTrailPolylineMaterial;
//# sourceMappingURL=TrailPolylineMaterial.js.map
