melonJS
    Preparing search index...

    Class HologramEffect

    A shader effect that simulates a holographic projection with horizontal scan lines, color shift, and flickering. Commonly used for sci-fi UI, ghost/spirit characters, or tech displays. The time uniform should be updated each frame for animation.

    Renderable.shader for usage

    const holo = new HologramEffect(renderer);
    mySprite.shader = holo;
    // update each frame
    holo.setTime(performance.now() / 1000);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    enabled: boolean = false

    whether this effect is active (false in Canvas mode)

    Methods