Fudge Core
    Preparing search index...

    Class CoatToonTextured

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

    Hierarchy

    Index

    Constructors

    • Parameters

      • _color: Color = ...
      • _texture: Texture = TextureDefault.color
      • _texToon: Texture = TextureDefault.toon
      • Optional_diffuse: number
      • _specular: number = 1.2
      • Optional_intensity: number
      • Optional_metallic: number

      Returns CoatToonTextured

    Properties

    alphaClip: number = 0.01

    Clipping threshold for alpha values, every pixel with alpha < alphaClip will be discarded.

    color: Color
    diffuse: number
    intensity: number
    specular: number
    texToon: Texture
    texture: 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

    • Collect applicable attributes of the instance and copies of their values in a Mutator-object. By default, a mutator cannot be extended, since extensions are not available in the object the mutator belongs to. A mutator may be reduced by the descendants of Mutable to contain only the properties needed.

      Returns Mutator

    • Collect the attributes of the instance and their values applicable for animation. Basic functionality is identical to getMutator, returned mutator should then be reduced by the subclassed instance

      Parameters

      • _extendable: boolean = false

      Returns MutatorForAnimation

    • 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
      • Optional_selection: string[]
      • Optional_dispatchMutate: boolean

      Returns void | Promise<void>

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

      Parameters

      Returns void

    • Called by the render system during Render.prepare. Override this to provide the render system with additional render data.

      Returns void

    • Called by the render system during Render.draw. Override this to provide the render system with additional render data.

      Returns void