/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{ReadDepth as e,getZProjectionMap as r}from"./ReadDepth.glsl.js";import{Float2BindUniform as t}from"../../shaderModules/Float2BindUniform.js";import{glsl as o}from"../../shaderModules/glsl.js";function a(a){a.include(e),a.uniforms.add(new t("zProjectionMapLastFrame",e=>r(e.reprojection.lastFrameCamera))),a.code.add(o`float linearDepthFromTextureLastFrame(sampler2D depthTexture, vec2 uv) {
return linearizeDepth(depthFromTexture(depthTexture, uv), zProjectionMapLastFrame);
}`)}export{a as ReadDepthLastFrame};
