UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in

26 lines (25 loc) 902 B
import type { EffectComposer } from "postprocessing"; import { Context } from "../../engine/engine_setup.js"; import { PostProcessingEffect } from "./PostProcessingEffect.js"; /** * PostProcessingHandler is responsible for applying post processing effects to the scene. It is internally used by the {@link Volume} component */ export declare class PostProcessingHandler { private _composer; private _lastVolumeComponents?; private _effects; get isActive(): boolean; get composer(): EffectComposer | null; private _isActive; private readonly context; constructor(context: Context); apply(components: PostProcessingEffect[]): Promise<void>; unapply(): void; dispose(): void; private onApply; /** Build composer passes */ private applyEffects; private _menuEntry; private _passIndices; private orderEffects; }