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/render/shader.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'intern/cycles/render/shader.h') diff --git a/intern/cycles/render/shader.h b/intern/cycles/render/shader.h index abd483caabc..0353da90013 100644 --- a/intern/cycles/render/shader.h +++ b/intern/cycles/render/shader.h @@ -195,6 +195,8 @@ public: static void free_memory(); + float linear_rgb_to_gray(float3 c); + protected: ShaderManager(); @@ -211,6 +213,11 @@ protected: DeviceRequestedFeatures *requested_features); thread_spin_lock attribute_lock_; + + float3 xyz_to_r; + float3 xyz_to_g; + float3 xyz_to_b; + float3 rgb_to_y; }; CCL_NAMESPACE_END -- cgit v1.2.3