threejs-worldgen
    Preparing search index...

    Class ShootingStars

    Meteors drawn as tapered, fading streaks on the far dome. Created by Sky; use it on its own by calling update(dt, state) every frame.

    Index
    active: Meteor[] = []

    Meteors in flight after the last update.

    elapsed: number = 0

    Elapsed seconds driving the schedule. Advanced by ShootingStars.update; set it to scrub.

    object: Mesh<InstancedBufferGeometry, NodeMaterial>

    The streak mesh. Add it to your scene.

    settings: ShootingStarsOptions = ...

    Resolved settings. Change them with ShootingStars.set / ShootingStars.reset.

    • Advances the schedule and refreshes the streaks.

      Parameters

      • dt: number

        Real seconds since the last frame (0 while paused).

      • state: SkyState = DEFAULT_STATE

        Sky state: provides the horizon frame and night (meteors fade out by day).

      Returns void