Fix T47323, no Fac output in Magic texture (OSL).
This commit is contained in:
@@ -97,6 +97,7 @@ shader node_magic_texture(
|
||||
float Distortion = 5.0,
|
||||
float Scale = 5.0,
|
||||
point Vector = P,
|
||||
output float Fac = 0.0,
|
||||
output color Color = 0.0)
|
||||
{
|
||||
point p = Vector;
|
||||
@@ -105,5 +106,6 @@ shader node_magic_texture(
|
||||
p = transform(mapping, p);
|
||||
|
||||
Color = magic(p * Scale, Depth, Distortion);
|
||||
Fac = (Color[0] + Color[1] + Color[2]) * (1.0/3.0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user