CombineLayers.generic

Generic function to combine different noise layers.

template CombineLayers(uint D)
@safe pure
double
generic
(
A...
)
if (
args.length > D + 1
)
if (
D > 0 &&
D < 5
)

Parameters

f

the combination function. must have a signature "double function(double,double) pure nothrow @nogc @safe"

args
Type: A

var length arguments - slice 0..D is the values for the dimensions - D..$ is the slice with the layers - they can be double or instance of layer - The Layers can also have other types as long as they have a "equal"-function that has the signature as in the layer interface.

Meta