Code: Select all
local tne = noise.to_noise_expression
local dist = noise.min(1.0, noise.max(0.0, noise.var("distance") - noise.var("starting_area_radius") / 4) / noise.var("starting_area_radius"))
local elevation = noise.delimit_procedure(name_expression)
...
expression = noise.clamp(elevation + tne(1), 0, 1) - dist - dist * elevation
Shouldn't noise overload the arithmetic operators for that?