Fix T49327: Cycles OSL Mode: RGB Curves node only outputs gray scale images
To be backported to 2.78 release.
This commit is contained in:
parent
d15899cca7
commit
ad40ae1e06
Notes:
blender-bot
2023-02-14 07:36:19 +01:00
Referenced by issue #49327, 2.78 RC1: Cycles OSL Mode: RGB Curves node only outputs gray scale images - even though input image is color. (Non OSL mode is OK)
|
@ -29,8 +29,8 @@ shader node_rgb_curves(
|
|||
color c = (ColorIn - color(min_x, min_x, min_x)) / (max_x - min_x);
|
||||
|
||||
color r = rgb_ramp_lookup(ramp, c[0], 1, 1);
|
||||
color g = rgb_ramp_lookup(ramp, c[0], 1, 1);
|
||||
color b = rgb_ramp_lookup(ramp, c[0], 1, 1);
|
||||
color g = rgb_ramp_lookup(ramp, c[1], 1, 1);
|
||||
color b = rgb_ramp_lookup(ramp, c[2], 1, 1);
|
||||
|
||||
ColorOut[0] = r[0];
|
||||
ColorOut[1] = g[1];
|
||||
|
|
Loading…
Reference in New Issue