/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as o}from"tslib";import{uniform as r,texture as t}from"../../../../GraphShaderModule.js";import{Float as e,Vec4 as s}from"../../../../graph/glsl.js";import{lookupColor as p,ColormapConfig as i,ColormapTextures as m}from"../lut.js";import{BaseRasterProcessorShader as a}from"./BaseRasterProcessorShader.js";class l extends a{constructor(){super(...arguments),this.type="ColormapToRGBShader"}_process(o){const r=this._getPixel(o),t=p(r,new e(1),this.colormapConfig,this.colormapTextures,!1);return new s(t.xyz.multiply(255),t.a)}}o([r(i)],l.prototype,"colormapConfig",void 0),o([t(m)],l.prototype,"colormapTextures",void 0);export{l as ColormapToRGBShader};
