/** * 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 { TextureSpec, Values, UniformSpec, DefineSpec } from '../../mol-gl/renderable/schema.js'; import { WebGLContext } from '../../mol-gl/webgl/context.js'; import { Texture } from '../../mol-gl/webgl/texture.js'; import { ComputeRenderable } from '../../mol-gl/renderable.js'; import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { RenderTarget } from '../../mol-gl/webgl/render-target.js'; import { ICamera } from '../../mol-canvas3d/camera.js'; import { PostprocessingProps } from './postprocessing.js'; export declare const OutlineParams: { scale: PD.Numeric; threshold: PD.Numeric; color: PD.Color; includeTransparent: PD.BooleanParam; }; export type OutlineProps = PD.Values; export declare class OutlinePass { private readonly webgl; static isEnabled(props: PostprocessingProps): boolean; readonly target: RenderTarget; private readonly renderable; constructor(webgl: WebGLContext, width: number, height: number, depthTextureTransparent: Texture, depthTextureOpaque: Texture); getByteCount(): number; setSize(width: number, height: number): void; update(camera: ICamera, props: OutlineProps, depthTextureTransparent: Texture, depthTextureOpaque: Texture): { transparentOutline: boolean; outlineScale: number; }; render(): void; } export declare const OutlinesSchema: { tDepthOpaque: TextureSpec<"texture">; tDepthTransparent: TextureSpec<"texture">; uTexSize: UniformSpec<"v2">; dOrthographic: DefineSpec<"number">; uNear: UniformSpec<"f">; uFar: UniformSpec<"f">; uInvProjection: UniformSpec<"m4">; uOutlineThreshold: UniformSpec<"f">; dTransparentOutline: DefineSpec<"boolean">; drawCount: import("../../mol-gl/renderable/schema.js").ValueSpec<"number">; instanceCount: import("../../mol-gl/renderable/schema.js").ValueSpec<"number">; aPosition: import("../../mol-gl/renderable/schema.js").AttributeSpec<"float32">; uQuadScale: UniformSpec<"v2">; }; export type OutlinesRenderable = ComputeRenderable>; export declare function getOutlinesRenderable(ctx: WebGLContext, depthTextureOpaque: Texture, depthTextureTransparent: Texture, transparentOutline: boolean): OutlinesRenderable;