the camera this effect is attached to
the camera this effect is attached to
whether this effect has finished and should be removed
whether this effect should persist across camera/game resets (e.g. transition effects that span state changes)
Called when the effect is removed from the camera. Override to clean up resources.
Called after the scene renders to draw visual overlays (e.g. color fills for fading).
the renderer to draw with
the camera viewport width
the camera viewport height
Called each frame to update the effect state (e.g. modify camera offset, countdown duration).
time elapsed since last frame in milliseconds
Base class for camera effects (shake, fade, flash, transitions, etc.). Subclasses implement update() for per-frame logic and/or draw() for rendering overlays. Effects are automatically removed from the camera when isComplete becomes true.