threejs-worldgen
    Preparing search index...

    Module threejs-fauna

    Procedural animals for three.js that live where they should: fish schools in rivers and seas matched to water type, temperature and depth, and bird flocks over the biomes they like. Bodies, patterns and swimming/flapping are generated (TSL, no textures); groups spawn deterministically per tile around the camera and move as seeded, fixed-step boids that never leave their habitat. Built on a small generic layer (FaunaLayer) so more kinds (land herds) slot in with the same placement, streaming and simulation.

    BirdFlocks
    Clock
    Fauna
    FaunaLayer
    Fish
    FishSchools
    Flock
    GridEnvironment
    MeshBuilder
    OpenEnvironment
    Band
    BirdFlocksOptions
    BirdFlocksSettings
    BirdShape
    BirdSpecies
    BoidParams
    Environment
    FaunaGroup
    FaunaInput
    FaunaLayerOptions
    FaunaLayerSettings
    FaunaOptions
    FaunaRenderer
    FaunaSampler
    FaunaStats
    FinSpec
    FishDetail
    FishHabitat
    FishMeshData
    FishOptions
    FishPattern
    FishSchoolsOptions
    FishSchoolsSettings
    FishSettings
    FishShape
    FishSpecies
    GroupSpawn
    Habitat
    MaterialStates
    MeshData
    PairedFinSpec
    Predator
    PredatorPoint
    SchoolSpec
    Section
    SpawnOptions
    SpeciesView
    SwimSpec
    WaterInfo
    WaterRules
    BirdFlocksInput
    BirdUniforms
    BoidWeights
    DeepPartial
    FaunaKindFactory
    FishInput
    FishSchoolsInput
    FishUniforms
    TailShape
    BIRD_SPECIES
    DEFAULT_BIRD_FLOCKS
    DEFAULT_BOIDS
    DEFAULT_FISH_DETAIL
    DEFAULT_FISH_SCHOOLS
    DEFAULT_LAYER
    DEFAULT_STATES
    DEFAULT_WATER_RULES
    FAUNA_KINDS
    FISH_SPECIES
    MAX_FISH_PITCH
    PART
    applyFishSpecies
    applyStates
    birdHabitat
    buildBirdMesh
    buildFishMesh
    createBirdMaterial
    createBirdUniforms
    createFishMaterial
    createFishUniforms
    deformBeforeInstancing
    fishClearance
    fishHabitat
    fishSection
    fishSuitability
    hookScene
    loftBody
    mergeInput
    placeInFrame
    prepareRenderer
    spawnTile
    spawnTileNow
    toGeometry
    waterInfo
    window01
    worldToFrame
    wrapAngle