UNPKG

molstar

Version:

A comprehensive macromolecular library.

27 lines (26 loc) 1.01 kB
/** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { WebGLContext } from '../../mol-gl/webgl/context'; import { Texture } from '../../mol-gl/webgl/texture'; import { ParamDefinition as PD } from '../../mol-util/param-definition'; import { Viewport } from '../camera/util'; import { RenderTarget } from '../../mol-gl/webgl/render-target'; export declare const FxaaParams: { edgeThresholdMin: PD.Numeric; edgeThresholdMax: PD.Numeric; iterations: PD.Numeric; subpixelQuality: PD.Numeric; }; export type FxaaProps = PD.Values<typeof FxaaParams>; export declare class FxaaPass { private webgl; private readonly renderable; constructor(webgl: WebGLContext, input: Texture); private updateState; setSize(width: number, height: number): void; update(input: Texture, props: FxaaProps): void; render(viewport: Viewport, target: RenderTarget | undefined): void; }