/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
import{FloatPassUniform as e}from"../../../core/shaderModules/FloatPassUniform.js";import{glsl as t}from"../../../core/shaderModules/glsl.js";import{UnpackAttributes as r}from"./UnpackAttributes.glsl.js";function s(s,a){const u=s.vertex;switch(s.include(r,a),a.type){case 0:u.code.add(t`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
return 0.0;
}`);break;case 1:u.uniforms.add(new e("strokesAmplitude",e=>e.strokesTexture.amplitude)).code.add(t`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
return strokesAmplitude;
}`);break;case 2:u.uniforms.add(new e("strokesAmplitude",e=>e.strokesTexture.amplitude)).code.add(t`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
float type = unpackedAttributes.type;
if (type <= 0.0) {
return strokesAmplitude;
}
return 0.0;
}`);break;case 3:break;default:a.type}}export{s as LineAmplitude};
