Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Material

Represents a material on a mesh.

Hierarchy

Implements

Index

Constructors

constructor

Accessors

color

  • The base color of this material.

    inheritdoc

    Returns Color4

  • The base color of this material.

    Parameters

    Returns void

id

  • get id(): string
  • The unique id of this asset. Use this to reference this asset in actors, etc.

    inheritdoc

    Returns string

mainTexture

  • Returns Texture

    A shared reference to this material's texture asset

  • Parameters

    Returns void

    A shared reference to this material's texture asset

mainTextureId

  • get mainTextureId(): string
  • set mainTextureId(value: string): void
  • The main (albedo) texture asset ID

    inheritdoc

    Returns string

  • The main (albedo) texture asset ID

    Parameters

    • value: string

    Returns void

mainTextureOffset

  • get mainTextureOffset(): Vector2
  • set mainTextureOffset(value: Vector2): void
  • The main texture's offset from default

    inheritdoc

    Returns Vector2

  • The main texture's offset from default

    Parameters

    Returns void

mainTextureScale

  • get mainTextureScale(): Vector2
  • set mainTextureScale(value: Vector2): void
  • The main texture's scale from default

    inheritdoc

    Returns Vector2

  • The main texture's scale from default

    Parameters

    Returns void

material

  • Only populated when this asset is a material. An asset will have only one of these types specified.

    inheritdoc

    Returns MaterialLike

name

  • get name(): string
  • A human-readable string identifying the asset. Not required to be unique, but can be referenced by name if it is.

    inheritdoc

    Returns string

source

  • Where this asset came from. Used for loading on late-joining clients.

    inheritdoc

    Returns AssetSource

Methods

copy

  • Parameters

    Returns this