/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{neverReached as e}from"../../../../../../core/compilerUtils.js";import{FloatDrawUniform as t}from"../../../core/shaderModules/FloatDrawUniform.js";import{glsl as r}from"../../../core/shaderModules/glsl.js";import{UnpackAttributes as s}from"./UnpackAttributes.glsl.js";function a(a,u){const d=a.vertex;switch(a.include(s,u),u.type){case 0:d.code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
return 0.0;
}`);break;case 1:d.uniforms.add(new t("strokesAmplitude",e=>e.strokesTexture.amplitude)).code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
return strokesAmplitude;
}`);break;case 2:d.uniforms.add(new t("strokesAmplitude",e=>e.strokesTexture.amplitude)).code.add(r`float calculateLineAmplitude(UnpackedAttributes unpackedAttributes) {
float type = unpackedAttributes.type;
if (type <= 0.0) {
return strokesAmplitude;
}
return 0.0;
}`);break;case 3:break;default:e(u.type)}}export{a as LineAmplitude};
