Class RenderManager<TEvent, TEventTypes>

Type Parameters

Hierarchy (view full)

Implements

Constructors

Properties

_composer: EffectComposer2
_context: WebGLRenderingContext
_dirty: boolean = true
_frameCount: number = 0
_isWebGL2: boolean
_lastTime: number = 0
_passes: IPipelinePass<string>[] = []
_passesNeedsUpdate: boolean = true
_pipeline: string[] = []
_renderScale: number = 1.
_renderSize: Vector2 = ...
_totalFrameCount: number = 0
autoBuildPipeline: boolean = true

Set autoBuildPipeline = false to be able to set the pipeline manually.

defaultRenderToScreen: boolean = true

Default value for renderToScreen in render

frameWaitTime: number = 0
maxTempPerKey: 5 = 5
stableNoise: boolean = false

Use total frame count, if this is set to true, then frameCount won't be reset when the viewer is set to dirty. Which will generate different random numbers for each frame during postprocessing steps. With TAA set properly, this will give a smoother result.

POWER_PREFERENCE: "default" | "high-performance" | "low-power" = 'high-performance'

Accessors

Methods

  • Regenerates the render pipeline by resolving dependencies and sorting the passes. This is called automatically when the passes are changed.

    Returns string[]

  • Parameters

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

    Returns void

Generated using TypeDoc