/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as o}from"tslib";import{uniform as r}from"../../../../GraphShaderModule.js";import{Float as t,Vec4 as s}from"../../../../graph/glsl.js";import{lookupColor as e,ColormapConfig as p}from"../lut.js";import{BaseRasterProcessorShader as i}from"./BaseRasterProcessorShader.js";class m extends i{constructor(){super(...arguments),this.type="ColormapToRGBShader"}_process(o){const r=this._getPixel(o),p=e(r,new t(1),this.colormapConfig,!1);return new s(p.xyz.multiply(255),p.a)}}o([r(p)],m.prototype,"colormapConfig",void 0);export{m as ColormapToRGBShader};
