/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{resolveIncludes as e}from"./sources/resolver.js";import{glslifyDefineMap as r}from"../../../../webgl/programUtils.js";const t=e=>{let r="";r+=e[0].toUpperCase();for(let t=1;t<e.length;t++){const o=e[t];o===o.toUpperCase()?(r+="_",r+=o):r+=o.toUpperCase()}return r},o=e=>{const o={};for(const r in e){o[t(r)]=e[r]}return r(o)};function s(r,t,s){const n=r+r.slice(Math.max(0,r.lastIndexOf("/"))),a=t+t.slice(Math.max(0,t.lastIndexOf("/"))),l=o(s);return{vertexShader:l+e(`${n}.vert`),fragmentShader:l+e(`${a}.frag`)}}export{s as createProgramTemplate};
