MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / Pass

Class Pass

types/index.d.ts:2763–2978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2761 * @implements {Disposable}
2762 */
2763export class Pass implements Initializable, Resizable, Disposable {
2764
2765 /**
2766 * Constructs a new pass.
2767 *
2768 * @param {String} [name] - The name of this pass. Does not have to be unique.
2769 * @param {Scene} [scene] - The scene to render. The default scene contains a single mesh that fills the screen.
2770 * @param {Camera} [camera] - A camera. Fullscreen effect passes don't require a camera.
2771 */
2772 constructor(name?: string, scene?: Scene, camera?: Camera);
2773 /**
2774 * The name of this pass.
2775 *
2776 * @type {String}
2777 */
2778 name: string;
2779 /**
2780 * The renderer.
2781 *
2782 * @deprecated
2783 * @type {WebGLRenderer}
2784 * @protected
2785 */
2786 protected renderer: WebGLRenderer;
2787 /**
2788 * The scene to render.
2789 *
2790 * @type {Scene}
2791 * @protected
2792 */
2793 protected scene: Scene;
2794 /**
2795 * The camera.
2796 *
2797 * @type {Camera}
2798 * @protected
2799 */
2800 protected camera: Camera;
2801 /**
2802 * Only relevant for subclassing.
2803 *
2804 * Indicates whether the {@link EffectComposer} should swap the frame buffers after this pass has finished
2805 * rendering. Set this to `false` if this pass doesn't render to the output buffer or the screen. Otherwise, the
2806 * contents of the input buffer will be lost.
2807 *
2808 * @type {Boolean}
2809 */
2810 needsSwap: boolean;
2811 /**
2812 * Only relevant for subclassing.
2813 *
2814 * Controls whether the {@link EffectComposer} should copy the depth buffer after this pass has finished rendering.
2815 * Default is `false`.
2816 *
2817 * @type {Boolean}
2818 */
2819 needsDepthBlit: boolean;
2820 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…