/** * Copyright (c) 2024-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author Gianluca Tomasello * * Partially adapted from three.js, The MIT License, Copyright © 2010-2024 three.js authors */ 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 { Viewport } from '../camera/util.js'; import { ICamera } from '../camera.js'; import { RenderTarget } from '../../mol-gl/webgl/render-target.js'; import { PostprocessingProps } from './postprocessing.js'; export declare const BloomParams: { strength: PD.Numeric; radius: PD.Numeric; threshold: PD.Numeric; mode: PD.Select<"luminosity" | "emissive">; transparency: PD.BooleanParam; }; export type BloomProps = PD.Values; export declare class BloomPass { private webgl; static isEnabled(props: PostprocessingProps): boolean; readonly emissiveTarget: RenderTarget; readonly compositeTarget: RenderTarget; private readonly luminosityTarget; private readonly horizontalBlurTargets; private readonly verticalBlurTargets; private readonly luminosityRenderable; private readonly blurRenderable; private readonly compositeRenderable; constructor(webgl: WebGLContext, width: number, height: number); getByteCount(): number; setSize(width: number, height: number): void; update(colorOpaque: Texture, colorTransparent: Texture, emissive: Texture, depthOpaque: Texture, depthTransparent: Texture, props: BloomProps, camera: ICamera, opaqueFogged: boolean): void; /** Writes bloom to `compositeTarget`; caller blends it. */ render(viewport: Viewport): void; }