threepipe
Version:
A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.
42 lines • 1.4 kB
TypeScript
import { OrthographicCamera, PerspectiveCamera } from 'three';
import { AViewerPluginSync, ThreeViewer } from '../../viewer';
import { ICamera } from '../../core';
import { ProgressivePlugin } from './ProgressivePlugin';
export type TCamera = ICamera & (PerspectiveCamera | OrthographicCamera);
/**
* SSAA Plugin
*
* Jitters the render camera and optionally other cameras in the scene
* to create a super-sampled anti-aliasing effect.
* This is done across multiple frames by integrating with the ProgressivePlugin
* @category Plugins
*/
export declare class SSAAPlugin extends AViewerPluginSync {
static readonly PluginType = "SSAAPlugin";
enabled: boolean;
rendersPerFrame: number;
jitterRenderCamera: boolean;
jitterLightCameras: boolean;
private _hasSetOffsetRC;
private _hasSetOffsetLC;
trackedJitterCameras: Map<TCamera, {
width: number;
height: number;
}>;
dependencies: (typeof ProgressivePlugin)[];
constructor(rendersPerFrame?: number);
onAdded(viewer: ThreeViewer): void;
onRemove(viewer: ThreeViewer): void;
setDirty(): void;
private _objectAdd;
private _objectRemove;
private _jitter;
private _clearJitter;
private _preRender;
private _postRender;
jitterOffsets: {
x: number;
y: number;
}[];
}
//# sourceMappingURL=../../src/plugins/pipeline/SSAAPlugin.d.ts.map