Code refactor: add separate RGB to BW node and rename some sockets.

This commit is contained in:
Brecht Van Lommel
2016-05-29 12:24:47 +02:00
parent eac7ed8d04
commit 9bd2820aaf
23 changed files with 199 additions and 148 deletions

View File

@@ -50,7 +50,7 @@ float safe_log(float a, float b)
shader node_math(
string type = "Add",
int Clamp = 0,
int use_clamp = 0,
float Value1 = 0.0,
float Value2 = 0.0,
output float Value = 0.0)
@@ -96,7 +96,7 @@ shader node_math(
else if (type == "Absolute")
Value = fabs(Value1);
if (Clamp)
if (use_clamp)
Value = clamp(Value, 0.0, 1.0);
}