API

Interface IBakedVertexAnimationManagerSince

Interface for baked vertex animation texture, see BakedVertexAnimationManager 5.0

interface IBakedVertexAnimationManager {
    animationParameters: Vector4;
    isEnabled: boolean;
    texture: Nullable<BaseTexture>;
    time: number;
    bind(effect: Effect, useInstances: boolean): void;
    dispose(forceDisposeTextures?: boolean): void;
    getClassName(): string;
    setAnimationParameters(
        startFrame: number,
        endFrame: number,
        offset: number,
        speedFramesPerSecond: number,
    ): void;
}

Implemented by

Index
animationParameters: Vector4

The animation parameters for the mesh. See setAnimationParameters()

isEnabled: boolean

Gets or sets a boolean indicating if the edgesRenderer is active

The vertex animation texture

time: number

The time counter, to pick the correct animation frame.

  • Sets animation parameters.

    Parameters

    • startFrame: number

      The first frame of the animation.

    • endFrame: number

      The last frame of the animation.

    • offset: number

      The offset when starting the animation.

    • speedFramesPerSecond: number

      The frame rate.

    Returns void