/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../core/shaderModules/interfaces"],(function(e,a){"use strict";var r;function d(r,d){const i=r.vertex;switch(i.code.add(a.glsl`#define VERTEX_DISCARD_CUTOFF (1.0 - 1.0 / 255.0)`),d.vertexDiscardMode){case e.VertexDiscardMode.None:i.code.add(a.glsl`#define vertexDiscardByOpacity(_opacity_) {}`);break;case e.VertexDiscardMode.Opaque:i.code.add(a.glsl`#define vertexDiscardByOpacity(_opacity_) { if (_opacity_ >  VERTEX_DISCARD_CUTOFF) {  gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`);break;case e.VertexDiscardMode.Transparent:i.code.add(a.glsl`#define vertexDiscardByOpacity(_opacity_) { if (_opacity_ <= VERTEX_DISCARD_CUTOFF) {  gl_Position = vec4(1e38, 1e38, 1e38, 1.0); return; } }`)}}e.VertexDiscardMode=void 0,(r=e.VertexDiscardMode||(e.VertexDiscardMode={}))[r.None=0]="None",r[r.Transparent=1]="Transparent",r[r.Opaque=2]="Opaque",r[r.COUNT=3]="COUNT",e.VertexDiscardByOpacity=d,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
