/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{BaseRasterProcessorTechnique as r}from"./BaseRasterProcessorTechnique.js";import{CurvatureShader as e}from"../../shaders/raster/processor/CurvatureShader.js";class s extends r{constructor(){super(...arguments),this.name="RasterCurvatureProcessor",this.type=11,this.shaders={curvature:new e}}_process(r,e){const s=r.rasterFunction.parameters,t={curvatureType:s.curvatureType},a=e.getRasterCellSize(),o={zlFactor:200*s.zFactor/a[0]/a[1]},u=this._getCommonConfig(r,e),c={shader:this.shaders.curvature,uniforms:{config:u,curvatureConfig:o},defines:t,optionalAttributes:null,useComputeBuffer:!1},{painter:i,context:n}=r;i.submitDrawMesh(n,c,i.quadMesh)}}export{s as CurvatureTechnique};
