Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2012-12-11 20:06:03 +0400
committerThomas Dinges <blender@dingto.org>2012-12-11 20:06:03 +0400
commit188718a3d57f3d869f228142ae30cce904e0e2e8 (patch)
tree8139c3d28378a5dd44aa5b0e187abeeb99d49516 /intern/cycles/kernel/shaders/node_rgb_curves.osl
parent92ae023a90adcac43a8079978eded9e0ca26a1ae (diff)
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.
Diffstat (limited to 'intern/cycles/kernel/shaders/node_rgb_curves.osl')
-rw-r--r--intern/cycles/kernel/shaders/node_rgb_curves.osl4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/shaders/node_rgb_curves.osl b/intern/cycles/kernel/shaders/node_rgb_curves.osl
index baa1d5c3de4..362bae8a750 100644
--- a/intern/cycles/kernel/shaders/node_rgb_curves.osl
+++ b/intern/cycles/kernel/shaders/node_rgb_curves.osl
@@ -40,9 +40,9 @@ float ramp_lookup(color ramp[RAMP_TABLE_SIZE], float at, int component)
shader node_rgb_curves(
color ramp[RAMP_TABLE_SIZE] = {0.0},
- color ColorIn = color(0.0, 0.0, 0.0),
+ color ColorIn = 0.0,
float Fac = 0.0,
- output color ColorOut = color(0.0, 0.0, 0.0))
+ output color ColorOut = 0.0)
{
ColorOut[0] = ramp_lookup(ramp, ColorIn[0], 0);
ColorOut[1] = ramp_lookup(ramp, ColorIn[1], 1);