RandomNormalMap

Overview

RandomNormalMap generates a random hemisphere normal. If input is bound, the same random normal will be generated for regions with the same color. The example below uses a NoiseWorleyMap_v2 to generate random normal regions.

worleyMap = NoiseWorleyMap_v2("worleyMap") {
    ["output_mode"] = "cell id",
    ["frequency"] = 10.0,
}

randomNormalMap = RandomNormalMap("randomNormalMap") {
    ["input"] = bind(worleyMap),
}

Attribute Reference

General attributes

input

Rgb bindable
default: [ 1, 1, 1 ]

the input color used as a base seed to generate the random value

seed

Int
default: 0

additional seed added to input for random number generator