Page History
This page provides information about the Color Arithmetic node in V-Ray for Cinema 4D.
Overview
...
...
Section | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Parameters
...
Section | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Bias and Gain Equations
...
The exact equations for the Christophe Schlick and Kenneth Perlin definitions are:
Code Block bias_schlick(x, a) := x / ((1 / a - 2) * (1 - x) + 1)
Code Block gain_shclick(x, a) := { bias_schlick(2 * x, a) / 2 , if a < 0.5 } { (bias_schlick(2 * x - 1, 1 - a) + 1) / 2 , if a >= 0.5 }
Code Block bias_perlin(x, a) := x ^ (ln(a) / ln(0.5))
Code Block gain_perlin(x, a) := { bias_perlin(2 * x, 1 - a) / 2 , if a < 0.5 } { 1 - bias_perlin(2 - 2 * x, 1 - a) / 2 , if a >= 0.5 }
References
...
[*] Kenneth Perlin and Eric M Hoffert. Hypertexture. SIGGRAPH, 1989.
[*] Christophe Schlick. Fast alternatives to Perlin’s bias and gain functions. Graphics Gems, 4, 1994