threejs-worldgen
    Preparing search index...

    Interface SpeciesView

    What a layer draws for one species: one instanced mesh and its per-instance buffers.

    interface SpeciesView {
        capacity: number;
        key: string;
        look: InstancedBufferAttribute;
        max: Vector3;
        mesh: InstancedMesh;
        min: Vector3;
        motion: InstancedBufferAttribute;
        need: number;
        reach: number;
        written: number;
    }
    Index
    capacity: number

    Instances the buffers hold.

    key: string

    Rebuild key of the geometry.

    look: InstancedBufferAttribute

    Per-instance (hue, brightness, pattern phase, random).

    max: Vector3

    Bounds of this frame's instance positions (anchor-relative).

    mesh: InstancedMesh

    Instanced mesh (count = animals drawn this frame).

    min: Vector3

    Bounds of this frame's instance positions (anchor-relative).

    motion: InstancedBufferAttribute

    Per-instance (phase, amplitude, bend, second phase).

    need: number

    Instances needed this frame.

    reach: number

    Largest instance scale this frame.

    written: number

    Instances written this frame.