Hierarchy

  • MaterialManager

Constructors

Properties

defaultMaterial: PbrMaterial
missingResourceTextures: Set<string>
pbrImageProcessing: ImageProcessingConfiguration

Accessors

  • get customEnvironmentUrl(): null | string
  • Url of a custom environment map/reflection texture which will be used instead of the predefined ones. Only BabylonJs .env files are suppoted. If defined the environmentMode will be ignored.

    Returns null | string

  • set customEnvironmentUrl(pUrl: null | string): void
  • Parameters

    • pUrl: null | string

    Returns void

  • get environmentMode(): EnvironmentMode
  • The environment mode controls which environment map/reflection texture will be used for PBR materials. Default = defaultHDR_512.env Planning = planningHDR_512.env

    Returns EnvironmentMode

  • set environmentMode(pMode: EnvironmentMode): void
  • Parameters

    Returns void

  • get scene(): Scene
  • Returns Scene

Methods

  • Parameters

    Returns boolean

  • Returns void

  • Creates a persistent texture. If a container is given, the url should be a path to a texture inside the container.

    Parameters

    • pId: string
    • pUrl: string
    • pHasAlpha: boolean = false
    • Optional pContainer: DocumentContainer

    Returns Promise<Texture>

  • Creates a runtime only texture.

    Parameters

    • pId: string
    • pUrl: string
    • pHasAlpha: boolean = false

    Returns Texture

  • Returns CubeTexture

  • Parameters

    • pId: string

    Returns null | Texture

  • Parameters

    • pId: string

    Returns boolean

  • Parameters

    • pId: string

    Returns boolean

  • Returns Promise<void>

Generated using TypeDoc