A Coat providing a color and parameters for the toon shading model.

Hierarchy

Constructors

  • Parameters

    • _color: Color = ...
    • _texToon: Texture = TextureDefault.toon
    • Optional _diffuse: number
    • _specular: number = 1.2
    • Optional _intensity: number
    • Optional _metallic: number

    Returns CoatToon

Properties

color: Color
diffuse: number
intensity: number
specular: number
texToon: Texture

Accessors

  • get type(): string
  • Retrieves the type of this mutable subclass as the name of the runtime class

    Returns string

    The type of the mutable

Methods

  • Updates the attribute values of the instance according to the state of the mutator. The mutation may be restricted to a subset of the mutator and the event dispatching suppressed. Uses mutateBase, but can be overwritten in subclasses

    Parameters

    • _mutator: Mutator
    • _selection: string[] = null
    • _dispatchMutate: boolean = true

    Returns Promise<void>

  • Updates the values of the given mutator according to the current state of the instance

    Parameters

    Returns void