threejs-worldgen
    Preparing search index...

    Interface SnowParams

    Parameters of the SNOW material (plain JSON numbers; live uniforms in a solver).

    interface SnowParams {
        compression: number;
        density: number;
        hardening: number;
        maxDensity: number;
        maxHardening: number;
        poisson: number;
        stretch: number;
        youngs: number;
        [key: string]: number;
    }

    Hierarchy

    • Record<string, number>
      • SnowParams

    Indexable

    • [key: string]: number
    Index
    compression: number

    Critical compression θc: singular values of F below 1 − θc turn into plastic compaction.

    density: number

    Density at rest, kg/m³ (sets the particle mass): fresh powder 50–200, settled 200–400, wet or packed 400–600.

    hardening: number

    Hardening ξ: the Lamé parameters scale by exp(ξ(1 − Jp)), so compacted snow stiffens and stretched snow crumbles.

    maxDensity: number

    Densest the snow compacts to, kg/m³ (at most ice, ICE_DENSITY): Jp never drops below density / maxDensity; past it the snow stays elastic and pushes back. Footprints in powder reach ~350–450, avalanche debris ~500–650.

    maxHardening: number

    Cap on that hardening factor. Real-time bound: the stable time step shrinks with the square root of the stiffness, so SNOW's sound speed (and the solver's substeps) assume this much hardening. Not in the paper (which had no cap); it keeps heavily compacted snow from forcing tiny steps.

    poisson: number

    Poisson's ratio ν.

    stretch: number

    Critical stretch θs: singular values above 1 + θs turn into plastic stretch (fracture).

    youngs: number

    Young's modulus E₀ of uncompacted snow, pascals.