Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Material

Represents a material on a mesh.

Hierarchy

Implements

Index

Constructors

constructor

Accessors

alphaCutoff

  • get alphaCutoff(): number
  • set alphaCutoff(val: number): void

alphaMode

color

id

  • get id(): string

material

metallic

  • get metallic(): number
  • set metallic(val: number): void
  • How metallic this material is. Metallic objects reflect light more strongly than non-metallic objects.

    inheritdoc

    Returns number

  • How metallic this material is. Metallic objects reflect light more strongly than non-metallic objects.

    Parameters

    • val: number

    Returns void

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

roughness

  • get roughness(): number
  • set roughness(val: number): void

source

textureId

  • get textureId(): string
  • set textureId(val: string): void