threejs-grass
    Preparing search index...

    Interface GrassLOD

    One of the four levels of detail. Density is interpolated linearly between consecutive LODs, so blades thin out smoothly with distance instead of popping at tile borders.

    interface GrassLOD {
        density: number;
        distance: number;
        segments: number;
    }
    Index
    density: number

    Fraction (0..1) of the full blade density kept at this distance.

    distance: number

    Distance from the camera (metres, XZ) at which this LOD is fully reached.

    segments: number

    Vertical segments per blade (or billboard). More = smoother bending, more vertices.