ThreePipe
    Preparing search index...

    Class GBufferPlugin

    G-Buffer Plugin

    Adds a pre-render pass to render the g-buffer(depth+normal+flags) to render target(s) that can be used as gbuffer and for postprocessing.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    bufferType: TextureDataType
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    depthTextureType: 1012 | 1014 | 1015 = UnsignedIntType
    enabled: boolean = true
    isPrimaryGBuffer: boolean
    material?: GBufferMaterial
    passId: "gbuffer" = 'gbuffer'
    renderDepthTexture: boolean = false
    renderFlagsBuffer: boolean = true
    textures: Texture<TextureEventMap>[] = []
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    unpackExtension: MaterialExtension = ...
    OldPluginType?: string
    PluginType: "GBuffer" = 'GBuffer'

    Accessors

    Methods

    • Parameters

      • material: {
            defines: Record<string, string | number | undefined>;
            needsUpdate?: boolean;
            uniforms: { [p: string]: IUniform<any> };
        }

      Returns this

      use unpackExtension instead, it adds the same uniforms and defines