/** Shared WGSL helpers for depth-based screen-space effects. */ export declare const depthHelpers = "fn advancedSceneUV(uv: vec2f) -> vec2f {\n return uv;\n}\n\nfn advancedLinearDepth(depth: f32, nearPlane: f32, farPlane: f32) -> f32 {\n return (nearPlane * farPlane) / max(farPlane - depth * (farPlane - nearPlane), 0.0001);\n}\n\nfn advancedDepthNormal(depthTexture: texture_depth_2d, depthTextureSampler: sampler, uv: vec2f) -> vec3f {\n let dimensions = vec2i(textureDimensions(depthTexture));\n let coordinate = clamp(vec2i(uv * vec2f(dimensions)), vec2i(0), dimensions - vec2i(1));\n let center = textureLoad(depthTexture, coordinate, 0);\n let right = textureLoad(depthTexture, min(coordinate + vec2i(1, 0), dimensions - vec2i(1)), 0);\n let up = textureLoad(depthTexture, min(coordinate + vec2i(0, 1), dimensions - vec2i(1)), 0);\n return normalize(vec3f((center - right) * f32(dimensions.x), (center - up) * f32(dimensions.y), 1.0));\n}\n"; //# sourceMappingURL=screen-space-shader-helpers.d.ts.map