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_brightness.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_brightness.osl')
-rw-r--r--intern/cycles/kernel/shaders/node_brightness.osl4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/kernel/shaders/node_brightness.osl b/intern/cycles/kernel/shaders/node_brightness.osl
index b263d815566..2de3c94ecc1 100644
--- a/intern/cycles/kernel/shaders/node_brightness.osl
+++ b/intern/cycles/kernel/shaders/node_brightness.osl
@@ -19,10 +19,10 @@
#include "stdosl.h"
shader node_brightness(
- color ColorIn = color(0.8, 0.8, 0.8),
+ color ColorIn = 0.8,
float Bright = 0.0,
float Contrast = 0.0,
- output color ColorOut = color(0.8, 0.8, 0.8))
+ output color ColorOut = 0.8)
{
float a = 1.0 + Contrast;
float b = Bright - Contrast*0.5;