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.
26 lines • 1.27 kB
TypeScript
import { MeshNormalMaterial, Texture, TextureDataType, WebGLRenderTarget } from 'three';
import { GBufferRenderPass } from '../../postprocessing';
import { ThreeViewer } from '../../viewer';
import { PipelinePassPlugin } from '../base/PipelinePassPlugin';
export type NormalBufferPluginTarget = WebGLRenderTarget;
export type NormalBufferPluginPass = GBufferRenderPass<'normal', NormalBufferPluginTarget | undefined>;
/**
* Normal Buffer Plugin
*
* Adds a pre-render pass to render the normal buffer to a render target that can be used for postprocessing.
* @category Plugins
*/
export declare class NormalBufferPlugin extends PipelinePassPlugin<NormalBufferPluginPass, 'normal'> {
readonly passId = "normal";
static readonly PluginType = "NormalBufferPlugin";
target?: NormalBufferPluginTarget;
texture?: Texture;
readonly material: MeshNormalMaterial;
readonly bufferType: TextureDataType;
protected _createTarget(recreate?: boolean): void;
protected _disposeTarget(): void;
protected _createPass(): GBufferRenderPass<"normal", NormalBufferPluginTarget | undefined>;
constructor(bufferType?: TextureDataType, enabled?: boolean);
onRemove(viewer: ThreeViewer): void;
}
//# sourceMappingURL=NormalBufferPlugin.d.ts.map