threejs-worldgen
    Preparing search index...

    Interface FishMeshData

    Fish mesh plus what the shader needs to paint the face.

    interface FishMeshData {
        attr: Float32Array;
        bodyIndexCount: number;
        bounds: [number, number, number, number, number, number];
        eye: [z: number, y: number, radius: number];
        index: Uint32Array;
        mouth: [y: number, length: number];
        normal: Float32Array;
        position: Float32Array;
    }

    Hierarchy (View Summary)

    Index
    attr: Float32Array

    (s, h, part, w) per vertex; see the module docs.

    bodyIndexCount: number

    The first bodyIndexCount indices are the closed body; the rest are fins.

    bounds: [number, number, number, number, number, number]

    Axis-aligned bounds: [minX, minY, minZ, maxX, maxY, maxZ].

    eye: [z: number, y: number, radius: number]

    Eye centre (z, y) and radius, in mesh units.

    index: Uint32Array

    Triangle indices.

    mouth: [y: number, length: number]

    Mouth line height (y) and length (in s).

    normal: Float32Array

    Unit normals, xyz per vertex.

    position: Float32Array

    xyz per vertex. Fish face +z (nose at z = 0.5, tail tip at z = −0.5), y up.