threejs-worldgen
    Preparing search index...

    Interface CellSample

    Result of a cellular (Worley) query.

    interface CellSample {
        distance: number;
        point: Vec3;
        random: number;
    }
    Index
    distance: number

    Distance to the nearest feature point, in cells.

    point: Vec3

    Feature point of the nearest cell, in cell units.

    random: number

    A stable random number in [0, 1) for the nearest cell.