Class GLTFViewerConfigExtension

Constructors

Properties

ViewerConfigGLTFExtension: "WEBGI_viewer" = 'WEBGI_viewer'

Methods

  • Private

    Find the resources that are in the viewer config AND in writer.json and use the ones in writer and remove from viewer Config. For now (for the lack of a better way) we can let the resources be exported twice and removed from resources. Overhead will be just for some images.

    Parameters

    • json: {}
      • viewerData: any

      Returns void

    • Private

      Find resources in parser from uuid

      Parameters

      • currentResources: {
            materials?: Record<string, any>;
            textures?: Record<string, any>;
        }
        • Optional materials?: Record<string, any>
        • Optional textures?: Record<string, any>
      • parser: GLTFParser
      • viewer: ThreeViewer

      Returns Promise<any>

    Generated using TypeDoc