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 full)

Constructors

Properties

_dirty: boolean = false
_isPrimaryGBufferSet: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

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
target?: GBufferPluginTarget
textures: Texture[] = []
uiConfig?: UiObjectConfig<any, string, any> = undefined
unpackExtension: MaterialExtension = ...
PluginType: "GBuffer" = 'GBuffer'

Accessors

Methods

  • Parameters

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

    Returns this

    Deprecated

    use unpackExtension instead, it adds the same uniforms and defines

Generated using TypeDoc