Effect renderer options

EffectRendererOptions

2024.1.8

yisky

interface EffectRendererOptions {
    autoClear?: boolean;
    depthBuffer?: boolean;
    enableNormalPass?: boolean;
    frameBufferType?: number;
    multisampling?: number;
    resolutionScale?: number;
    stencilBuffer?: boolean;
}

Properties

autoClear?: boolean

Whether to auto clear render targets. Default is true.

EffectRendererOptions

depthBuffer?: boolean

Whether the main render targets should have a depth buffer. Default is true.

EffectRendererOptions

enableNormalPass?: boolean

Whether to enable the normal pass. Default is true.

EffectRendererOptions

frameBufferType?: number

The type of the internal frame buffers. It's recommended to use HalfFloatType if possible.

EffectRendererOptions

multisampling?: number

The number of samples used for multisample antialiasing. Requires WebGL 2. Default is 0.

EffectRendererOptions

resolutionScale?: number

The normal pass downsampling resolution scale.

EffectRendererOptions

stencilBuffer?: boolean

Whether the main render targets should have a stencil buffer. Default is false.

EffectRendererOptions