/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as r}from"tslib";import{uniform as s,UniformGroup as e}from"../../../../GraphShaderModule.js";import{dot as o,Vec4 as t,Vec3 as a}from"../../../../graph/glsl.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class p extends e{}r([s(a)],p.prototype,"weights",void 0);class c extends i{constructor(){super(...arguments),this.type="GrayscaleShader"}_process(r){const s=this._getPixel(r),{weights:e}=this.grayscaleConfig,a=o(e,s.rgb);return new t(a,a,a,s.a)}}r([s(p)],c.prototype,"grayscaleConfig",void 0);export{c as GrayscaleShader};
