OSL Shader Files:
* Simplify default color values, where each component was the same. * Initialize closures as Null Closure, rather than assigning an existing closure, gets overwritten anyways.
This commit is contained in:
@@ -44,10 +44,10 @@ shader node_checker_texture(
|
||||
matrix mapping = matrix(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),
|
||||
float Scale = 5.0,
|
||||
point Vector = P,
|
||||
color Color1 = color(0.8, 0.8, 0.8),
|
||||
color Color2 = color(0.2, 0.2, 0.2),
|
||||
color Color1 = 0.8,
|
||||
color Color2 = 0.2,
|
||||
output float Fac = 0.0,
|
||||
output color Color = color(0.0, 0.0, 0.0))
|
||||
output color Color = 0.0)
|
||||
{
|
||||
point p = Vector;
|
||||
|
||||
|
Reference in New Issue
Block a user