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:
authorBrecht Van Lommel <brecht@blender.org>2022-03-22 22:41:46 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-04-18 20:14:34 +0300
commit029b0df81aa116a3e29f405dc8902834242d5338 (patch)
treeb14a14c4480b9ef826c5a786a479a49f0ca9291f /intern/cycles/scene/shader.h
parent41b3feea85cd8c323c1c5030f1ab0bc90438df4f (diff)
Fix Cycles blackbody shader not taking into account OpenColorIO config
Keep the existing Rec.709 fit and convert to other colorspace if needed, it seems accurate enough in practice, and keeps the same performance for the default case.
Diffstat (limited to 'intern/cycles/scene/shader.h')
-rw-r--r--intern/cycles/scene/shader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/scene/shader.h b/intern/cycles/scene/shader.h
index cbe331d8ec2..274bb9b4fa1 100644
--- a/intern/cycles/scene/shader.h
+++ b/intern/cycles/scene/shader.h
@@ -208,6 +208,7 @@ class ShaderManager {
static void free_memory();
float linear_rgb_to_gray(float3 c);
+ float3 rec709_to_scene_linear(float3 c);
string get_cryptomatte_materials(Scene *scene);
@@ -239,6 +240,10 @@ class ShaderManager {
float3 xyz_to_g;
float3 xyz_to_b;
float3 rgb_to_y;
+ float3 rec709_to_r;
+ float3 rec709_to_g;
+ float3 rec709_to_b;
+ bool is_rec709;
};
CCL_NAMESPACE_END