style cleanup: osl and NULL pointer use, also correct sequencer gap operator id's

This commit is contained in:
Campbell Barton
2013-03-27 20:27:07 +00:00
parent 535253cad0
commit d15d78a33a
8 changed files with 17 additions and 16 deletions

View File

@@ -25,10 +25,10 @@ shader node_brightness(
output color ColorOut = 0.8)
{
float a = 1.0 + Contrast;
float b = Bright - Contrast*0.5;
float b = Bright - Contrast * 0.5;
ColorOut[0] = max(a*ColorIn[0] + b, 0.0);
ColorOut[1] = max(a*ColorIn[1] + b, 0.0);
ColorOut[2] = max(a*ColorIn[2] + b, 0.0);
ColorOut[0] = max(a * ColorIn[0] + b, 0.0);
ColorOut[1] = max(a * ColorIn[1] + b, 0.0);
ColorOut[2] = max(a * ColorIn[2] + b, 0.0);
}