/** * Copyright (c) 2019-2025 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author Áron Samuel Kovács * @author Ludovic Autin * @author Gianluca Tomasello */ import { WebGLContext } from '../../mol-gl/webgl/context.js'; import { Texture } from '../../mol-gl/webgl/texture.js'; import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { ICamera } from '../../mol-canvas3d/camera.js'; import { Scene } from '../../mol-gl/scene.js'; import { PostprocessingProps } from './postprocessing.js'; export declare const SsaoParams: { samples: PD.Numeric; multiScale: PD.Mapped, "off"> | PD.NamedParams[]; nearThreshold: number; farThreshold: number; }>, "on">>; radius: PD.Numeric; bias: PD.Numeric; blurKernelSize: PD.Numeric; blurDepthBias: PD.Numeric; resolutionScale: PD.Numeric; color: PD.Color; transparentThreshold: PD.Numeric; }; export type SsaoProps = PD.Values; export declare class SsaoPass { private readonly webgl; static isEnabled(props: PostprocessingProps): boolean; static isTransparentEnabled(scene: Scene, props: SsaoProps): boolean; private readonly framebuffer; private readonly blurFirstPassFramebuffer; private readonly blurSecondPassFramebuffer; private readonly downsampledDepthTargetOpaque; private readonly downsampleDepthRenderableOpaque; private readonly depthHalfTargetOpaque; private readonly depthHalfRenderableOpaque; private readonly depthQuarterTargetOpaque; private readonly depthQuarterRenderableOpaque; private readonly downsampledDepthTargetTransparent; private readonly downsampleDepthRenderableTransparent; private readonly depthHalfTargetTransparent; private readonly depthHalfRenderableTransparent; private readonly depthQuarterTargetTransparent; private readonly depthQuarterRenderableTransparent; readonly ssaoDepthTexture: Texture; readonly ssaoDepthTransparentTexture: Texture; private readonly depthBlurProxyTexture; private depthTextureOpaque; private depthTextureTransparent; private readonly renderable; private readonly blurFirstPassRenderable; private readonly blurSecondPassRenderable; private nSamples; private blurKernelSize; private texSize; private invProjection; private ssaoScale; private calcSsaoScale; private levelsCameraScale; private levels; private getDepthTexture; private getTransparentDepthTexture; constructor(webgl: WebGLContext, width: number, height: number, packedDepth: boolean, depthTextureOpaque: Texture, depthTextureTransparent: Texture); getByteCount(): number; setSize(width: number, height: number): void; reset(): void; update(camera: ICamera, scene: Scene, props: SsaoProps, illuminationMode?: boolean): void; render(camera: ICamera): void; }