molstar
Version:
A comprehensive macromolecular library.
33 lines (32 loc) • 1.42 kB
TypeScript
/**
* Copyright (c) 2019-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
* @author Áron Samuel Kovács <aron.kovacs@mail.muni.cz>
* @author Ludovic Autin <ludovic.autin@gmail.com>
* @author Gianluca Tomasello <giagitom@gmail.com>
*/
import { WebGLContext } from '../../mol-gl/webgl/context';
import { Texture } from '../../mol-gl/webgl/texture';
import { Vec3 } from '../../mol-math/linear-algebra';
import { ParamDefinition as PD } from '../../mol-util/param-definition';
import { RenderTarget } from '../../mol-gl/webgl/render-target';
import { ICamera } from '../../mol-canvas3d/camera';
import { Light } from '../../mol-gl/renderer';
import { PostprocessingProps } from './postprocessing';
export declare const ShadowParams: {
steps: PD.Numeric;
maxDistance: PD.Numeric;
tolerance: PD.Numeric;
};
export type ShadowProps = PD.Values<typeof ShadowParams>;
export declare class ShadowPass {
readonly webgl: WebGLContext;
static isEnabled(props: PostprocessingProps): boolean;
readonly target: RenderTarget;
private readonly renderable;
constructor(webgl: WebGLContext, width: number, height: number, depthTextureOpaque: Texture);
setSize(width: number, height: number): void;
update(camera: ICamera, light: Light, ambientColor: Vec3, props: ShadowProps): void;
render(): void;
}