@masatomakino/threejs-shader-materials
    Preparing search index...

    Interface IAnimatable

    時間経過によりアニメーションするマテリアルのインターフェース。

    • アニメーションスピードspeed
    • アニメーション再生/停止フラグisAnimate

    のそれぞれの変数にアクセスできることを保証する。

    interface IAnimatable {
        isAnimate: boolean;
        speed: number;
        uniforms: { [uniform: string]: IUniform<any> };
        addTime(delta: number): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    Methods

    Properties

    isAnimate: boolean
    speed: number
    uniforms: { [uniform: string]: IUniform<any> }

    Methods

    • 経過時間を追加する。uniformのtimeにはdelta * speedの値が加算される。speedに負の値を設定すると、アニメーションの進行方向は反転する。

      Parameters

      • delta: number

        前回アニメーション実行時からの差分時間 単位 : 秒

      Returns void