/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
const e={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},t={pbrMetallicRoughness:e,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},o={ESRI_externalColorMixMode:"tint",ESRI_receiveShadows:!0,ESRI_receiveAmbientOcclusion:!0},r=(r={})=>{const l={...e,...r.pbrMetallicRoughness},i=a({...o,...r.extras});return{...t,...r,pbrMetallicRoughness:l,extras:i}};function a(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:e.ESRI_externalColorMixMode,e.ESRI_externalColorMixMode="tint"}return e}const l={magFilter:9729,minFilter:9987,wrapS:10497,wrapT:10497},i=e=>({...l,...e});export{r as material,i as textureSampler};
