Code refactor: add separate RGB to BW node and rename some sockets.
This commit is contained in:
@@ -93,7 +93,7 @@ color magic(point p, int n, float distortion)
|
||||
shader node_magic_texture(
|
||||
int use_mapping = 0,
|
||||
matrix mapping = matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
int Depth = 2,
|
||||
int depth = 2,
|
||||
float Distortion = 5.0,
|
||||
float Scale = 5.0,
|
||||
point Vector = P,
|
||||
@@ -105,7 +105,7 @@ shader node_magic_texture(
|
||||
if (use_mapping)
|
||||
p = transform(mapping, p);
|
||||
|
||||
Color = magic(p * Scale, Depth, Distortion);
|
||||
Color = magic(p * Scale, depth, Distortion);
|
||||
Fac = (Color[0] + Color[1] + Color[2]) * (1.0 / 3.0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user