Class RenderTargetPreviewPlugin<TEvent>

Base Class for Sync Viewer Plugins

Type Parameters

  • TEvent extends string

Hierarchy (view full)

Constructors

Properties

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

Type declaration

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean = true
mainDiv: HTMLDivElement = ...
stylesheet?: HTMLStyleElement
targetBlocks: RenderTargetBlock[] = []
toJSON: any = null
uiConfig?: UiObjectConfig<any, string, any> = undefined
OldPluginType?: string
PluginType: "RenderTargetPreviewPlugin" = 'RenderTargetPreviewPlugin'

Accessors

Methods

  • Parameters

    • target: ValOrFunc<undefined | null | IRenderTarget | {
          texture?: ValOrArr<ITexture>;
      }>

      render target or a function that returns a render target

    • name: string

      name of the target

    • transparent: boolean = false

      if true, the target will be rendered with transparency

    • originalColorSpace: boolean = false

      if true, the target will be rendered in its original color space

    • visible: boolean = true

      initial visibility

    • Optional material: ShaderMaterial<Event, string> | ValOrFunc<string, [string]>

      snippet for ExtendedCopyPass or a custom ExtendedShaderMaterial or three.js ShaderMaterial. Example to read just the red channel (s)=>s + ' = vec4(' + s + '.r);'

    Returns this

Generated using TypeDoc