/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../attributes/TextureCoordinateAttribute.glsl","../attributes/VertexTextureCoordinates.glsl","../util/TextureAtlasLookup.glsl","../../shaderModules/interfaces","../../shaderModules/Texture2DDrawUniform"],(function(e,t,r,o,u,a){"use strict";function s(e,s){const l=e.fragment;if(s.hasBaseColorTexture){e.include(r.VertexTextureCoordinates,s);const d=s.textureCoordinateType===t.TextureCoordinateAttributeType.Atlas;l.uniforms.add(a.createTexture2DDrawSizeUniforms("baseColorTexture",(e=>e.texture),d)),d?(e.include(o.TextureAtlasLookup),l.code.add(u.glsl`vec4 readBaseColorTexture() {
return textureAtlasLookup(baseColorTexture, baseColorTextureSize, vuv0, vuvRegion);
}`)):l.code.add(u.glsl`vec4 readBaseColorTexture() {
return texture2D(baseColorTexture, vuv0);
}`)}else l.code.add(u.glsl`vec4 readBaseColorTexture() { return vec4(1.0); }`)}e.ReadBaseColorTexture=s,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
