Threepipe Path Tracing Plugins
    Preparing search index...

    Class ThreeGpuPathTracerPlugin

    ThreeGpuPathTracerPlugin

    Path Tracing plugin for Threepipe using three-gpu-pathtracer.

    This plugin allows for GPU-accelerated path tracing in Three.js scenes. (using webgl2)

    It provides options to configure the path tracing parameters such as bounces, samples per frame, and more. It also integrates with the Three.js scene and camera, updating materials and lights as needed. Serialization and deserialization are supported for plugin state management. It listens to scene updates, camera changes, and material updates to refresh the path tracing setup. It can be enabled or disabled, and it automatically handles rendering to the screen or to a texture. It supports progressive rendering, allowing for a smooth transition of rendered frames.

    Hierarchy

    • AViewerPluginSync
      • ThreeGpuPathTracerPlugin
    Index
    _dirty: boolean = false
    _viewer?: ThreeViewer
    _viewerListeners: { preFrame: () => void } = ...
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    dependencies: typeof ProgressivePlugin[] = ...
    enabled: boolean = true
    isViewerPluginSync: true = ...
    samplesPerFrame: number = 1
    tracer: WebGLPathTracer | undefined
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    OldPluginType?: string
    PluginType: "ThreeGpuPathTracerPlugin" = 'ThreeGpuPathTracerPlugin'
    • Parameters

      • e: IViewerEvent

      Returns IViewerEvent

    • Parameters

      • Optionalprefix: string

      Returns string

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Returns ISerializedConfig | Record<string, never>

    • Parameters

      • state: any

      Returns Promise<void>

    • Parameters

      • Optionalmeta: SerializationMetaType

      Returns ISerializedConfig