Materials

Vertical Material Range

Restricts a material program to a bounded Y range.

material.vertical_range

Vertical Material RangeMin Y-64Max Y320InputOutput

What it does

Keep a material within a band of world heights. Outside that band it makes no choice, which lets you limit water to low areas without covering the whole sky.

Connect the material to Input, then set Min Y and Max Y around the region you want. For water, put Output into Material by Solidity’s Empty so the sea fills empty space rather than replacing the ground.

Inputs and outputs

NameTypeDefaultWhat it changes
Inputs
InputMaterialThe material to keep inside the height band.
Min YInteger-64The lowest world height where the material applies, included.
Max YInteger320The first world height where the material no longer applies.
Output
OutputMaterialThe input material within the band, with no choice outside it.

See also