Interface IRenderManager<E, ET>

interface IRenderManager<
    E extends IRenderManagerEvent = IRenderManagerEvent,
    ET extends string = IRenderManagerEventTypes,
> {
    clock: Clock;
    composer: EffectComposer2;
    composerTarget: IRenderTarget;
    context: WebGLRenderingContext;
    frameCount: number;
    isWebGL2: boolean;
    maxTempPerKey: 5;
    needsRender: boolean;
    passes: IPipelinePass[];
    pipeline: string[];
    renderer: IWebGLRenderer;
    renderScale: number;
    renderSize: Vector2;
    totalFrameCount: number;
    useLegacyLights: boolean;
    webglRenderer: WebGLRenderer;
    _createTargetClass(
        clazz: Class<WebGLRenderTarget>,
        size: number[],
        options: WebGLRenderTargetOptions,
    ): IRenderTarget;
    _processNewTarget(
        target: IRenderTarget,
        sizeMultiplier: undefined | number,
        trackTarget: boolean,
    ): IRenderTarget;
    blit(
        destination: undefined | null | IRenderTarget,
        options?: RendererBlitOptions,
    ): void;
    clearColor(
        __namedParameters: {
            a?: number;
            b?: number;
            depth?: boolean;
            g?: number;
            r?: number;
            stencil?: boolean;
            target?: IRenderTarget;
            viewport?: Vector4;
        },
    ): void;
    createTarget<T extends IRenderTarget = IRenderTarget>(
        __namedParameters?: CreateRenderTargetOptions,
        trackTarget?: boolean,
    ): T;
    createTargetCustom<T extends IRenderTarget>(
        __namedParameters: { count?: number; height: number; width: number },
        options?: WebGLRenderTargetOptions,
        clazz?: Class<T>,
    ): T;
    dispose(clear?: boolean): void;
    disposeTarget(target: IRenderTarget, remove?: boolean): void;
    exportRenderTarget(target: WebGLRenderTarget, mimeType?: string): BlobExt;
    getTempTarget<T extends IRenderTarget = IRenderTarget>(
        op?: CreateRenderTargetOptions,
    ): T;
    rebuildPipeline(setDirty?: boolean): void;
    refreshPasses(): void;
    registerPass(pass: IPipelinePass, replaceId?: boolean): void;
    releaseTempTarget(target: IRenderTarget): void;
    removeTrackedTarget(target: IRenderTarget): void;
    render(scene: IScene): void;
    renderTargetToBuffer(
        target: WebGLRenderTarget,
    ): Uint8Array | Uint16Array | Float32Array;
    renderTargetToDataUrl(
        target: WebGLRenderTarget,
        mimeType?: string,
        quality?: number,
    ): string;
    reset(): void;
    resetShadows(): void;
    resizeTrackedTarget(target: IRenderTarget): void;
    resizeTrackedTargets(): void;
    setSize(width: number, height: number): void;
    trackTarget(target: IRenderTarget): void;
    unregisterPass(pass: IPipelinePass): void;
    updateShaderProperties(
        material: {
            defines: Record<string, undefined | string | number>;
            uniforms: { [name: string]: IUniform };
        },
    ): this;
}

Type Parameters

Hierarchy (View Summary)

Implemented by

Properties

clock: Clock
composer: EffectComposer2
composerTarget: IRenderTarget
context: WebGLRenderingContext
frameCount: number
isWebGL2: boolean
maxTempPerKey: 5
needsRender: boolean
passes: IPipelinePass[]
pipeline: string[]
renderer: IWebGLRenderer
renderScale: number
renderSize: Vector2
totalFrameCount: number
useLegacyLights: boolean
webglRenderer: WebGLRenderer

Methods

  • Parameters

    • __namedParameters: {
          a?: number;
          b?: number;
          depth?: boolean;
          g?: number;
          r?: number;
          stencil?: boolean;
          target?: IRenderTarget;
          viewport?: Vector4;
      }

    Returns void

  • Parameters

    • OptionalsetDirty: boolean

    Returns void

  • Parameters

    • width: number
    • height: number

    Returns void