Loader for quarks particle system.

Hierarchy

  • ObjectLoader
    • QuarksLoader

Constructors

Properties

crossOrigin: string
'anonymous'
manager: LoadingManager
path: string
''
requestHeader: { [header: string]: string }
{}
resourcePath: string
''
withCredentials: boolean
false
DEFAULT_MATERIAL_NAME: string

Methods

  • Links the references of the particle system. It's used to link the references of sub particle systems.

    Parameters

    • object: Object3D

      the target object to link the references.

    Returns void

  • Parameters

    • url: string
    • OptionalonLoad: (data: Object3D) => void
    • OptionalonProgress: (event: ProgressEvent) => void
    • OptionalonError: (err: unknown) => void

    Returns void

  • Parameters

    • url: string
    • OptionalonProgress: (event: ProgressEvent) => void

    Returns Promise<Object3D>

  • Parses the json data to create a quarks particle system.

    Type Parameters

    • T extends Object3D

    Parameters

    • json: any

      the json data to parse.

    • OptionalonLoad: (object: Object3D) => void

      the callback function to be called after the object is loaded.

    Returns T

  • Parameters

    • json: unknown

    Returns { [key: string]: AnimationClip }

  • Parameters

    • json: unknown

    Returns Promise<Object3D>

  • Parameters

    • json: unknown

    Returns { [key: string]: BufferGeometry | InstancedBufferGeometry }

  • Parameters

    • json: unknown
    • OptionalonLoad: () => void

    Returns { [key: string]: Source }

  • Parameters

    • json: unknown

    Returns Promise<{ [key: string]: Source }>

  • Parameters

    • json: unknown
    • textures: { [key: string]: Texture }

    Returns { [key: string]: Material }

  • Parameters

    • data: any
    • geometries: { [uuid: string]: BufferGeometry }
    • materials: { [uuid: string]: Material }
    • textures: { [uuid: string]: Texture }
    • animations: { [uuid: string]: AnimationClip }

    Returns Object3D

  • Parameters

    • json: unknown
    • images: { [key: string]: Source }

    Returns { [key: string]: Texture }

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • path: string

    Returns this

  • Parameters

    • requestHeader: { [header: string]: string }

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • value: boolean

    Returns this