Class SSAOPluginPass

Hierarchy (view full)

Implements

Constructors

Properties

after: string[] = ...
before: string[] = ...
bias: number = 0.001
checkGBufferFlag: boolean = false

Whether to check for gbuffer flag or not. This is used to disable SSAO casting by some objects. its enabled automatically by the SSAOPlugin when required. This is disabled by default so that we dont read texture for no reason.

enabled: boolean = true
falloff: number = 1.3
intensity: number = 0.25
isExtendedShaderPass: true = true
materialExtension: MaterialExtension = ...
numSamples: number = 8
occlusionWorldRadius: number = 1
onDirty: (() => void)[] = []

Type declaration

    • (): void
    • Returns void

overrideReadBuffer: null | {
    texture?: Texture;
} = null

Type declaration

passId: string

Unique id for the pass. Used to determine the order of passes in the pipeline.

required: string[] = ...
target?: ValOrFunc<undefined | WebGLRenderTarget>
DEFAULT_TEX_ID: "tDiffuse" = 'tDiffuse'

Accessors

Methods

  • Private

    Returns a uiConfig to toggle SSAO on a material. This uiConfig is added to each material by extension

    Returns {
        children: {
            label: string;
            onChange: (() => void);
            type: string;
            value: boolean;
        }[];
        label: string;
        type: string;
    }

    • children: {
          label: string;
          onChange: (() => void);
          type: string;
          value: boolean;
      }[]
    • label: string
    • type: string

Generated using TypeDoc