threejs-worldgen
    Preparing search index...

    Type Alias MaterialStateNodes

    MaterialStateNodes: Partial<
        Record<StateChannel | "heat" | "ash", Node<"float"> | number>,
    >

    The material-state contract as TSL nodes: the four float states, plus optional heat (0…1, "on fire right now"), which drives the ember glow, and ash (0…1, white ash vs black char where burnt). Any field may be left out: missing states cost nothing (no shader code is generated for them). Numbers are accepted as constants.