From 3ee606621cf53a2a4897e534e7e04d3632f419f8 Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Thu, 14 Jun 2018 17:48:19 +0200 Subject: Cycles: Query XYZ to/from Scene Linear conversion from OCIO instead of assuming sRGB I've limited it to just the RGB<->XYZ stuff for now, correct image handling is the next step. Reviewers: brecht, sergey Differential Revision: https://developer.blender.org/D3478 --- intern/cycles/kernel/shaders/node_color.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/kernel/shaders/node_color.h') diff --git a/intern/cycles/kernel/shaders/node_color.h b/intern/cycles/kernel/shaders/node_color.h index 4a17286a07f..2c3a810cb18 100644 --- a/intern/cycles/kernel/shaders/node_color.h +++ b/intern/cycles/kernel/shaders/node_color.h @@ -14,6 +14,8 @@ * limitations under the License. */ +/* TODO(lukas): Fix colors in OSL. */ + float color_srgb_to_scene_linear(float c) { if (c < 0.04045) -- cgit v1.2.3