/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{ReadDepth as e}from"../output/ReadDepth.glsl.js";import{glsl as t}from"../../shaderModules/glsl.js";import{Texture2DBindUniform as o}from"../../shaderModules/Texture2DBindUniform.js";function r(r){r.include(e),r.uniforms.add(new o("geometryDepthTexture",e=>e.geometryDepth?.attachment)),r.code.add(t`bool geometryDepthTest(vec2 pos, float elementDepth) {
float geometryDepth = linearDepthFromTexture(geometryDepthTexture, pos);
return (elementDepth < (geometryDepth - 1.0));
}`)}export{r as multipassGeometryTest};
