[Genhis] [1.1.68] noise.delimit_procedure doesn't overload operators for the return value
Posted: Mon Sep 12, 2022 3:12 pm
In my code I define a noise function using:
Why do I get an error when I remove that "tne" in the code: "attempt to perform arithmetic on local 'elevation' (a table value)"?
Shouldn't noise overload the arithmetic operators for that?
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?