UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 526 B
import{setSingleImageTextures as t,setCoordsAndTransforms as r}from"./utils.js";const a={vsPath:"raster/rfx/vs",fsPath:"raster/rfx/bandarithmetic",attributes:new Map([["a_position",0],["a_texcoord",1]])};function e(t,r){const{painter:e,rasterFunction:n}=t,{indexType:s}=n.parameters;return e.materialManager.getProgram(a,[s])}function n(a,e,n){t(a,e,n),r(e);const{bandIndexMat3:s}=a.rasterFunction.parameters;e.setUniformMatrix3fv("u_bandIndexMat3",s)}const s={createProgram:e,bindTextureAndUniforms:n};export{s as default};