ScaleBias

Applies a scaling factor and a bias to the output value from a source module.

This module gets the value of the input module, multiplies it with a scaling factor, adds a bias to it, then outputs the value.

A scale value of 1 and a bias of 0 will not change the output values.

Node inputs/outputs

The module’s constructor needs:

  • Input module : the Generation Module modified by this modifier
  • Scale : the value used to multiply the input values
  • Bias : the value to add to input values (after the multiplication is done)

The output value is a Generation Module

Examples

A Perlin noise with a scale of 2 and a bias of 0

A Perlin noise with a scale of 1 and a bias of -1

A Perlin noise with a scale of 2 and a bias of -1