Materials

Material by Density Bands

Maps ordered density ranges to an ordered material palette.

material.density_bands

Material by Density BandsBounds3 positionsDensityOutputInputs

What it does

Paint several materials according to one density. Each band gets its own material, which lets a noise choose between patches of different blocks.

Connect the deciding field to Density, then list Bounds from low to high and connect the materials to Inputs in matching order. You need one more bound than materials. Outside all bands the rule chooses nothing, allowing a Material Queue to continue.

Inputs and outputs

NameTypeDefaultWhat it changes
Inputs
DensityDensityThe field that decides which band applies.
InputsMaterialOne material per band, from the lowest band to the highest. Takes several, in order.
Settings
BoundsNumbers-1.0, 0.0, 1.0The ordered band edges; each band includes its lower edge and excludes its upper edge.
Output
OutputMaterialThe material in the matching band, or no choice outside the bands.

Good to know

Keep the rule inside the ground

Connect it to Solid on Material by Solidity. Density bands do not check whether the position is solid.

See also