diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-19 03:56:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-19 15:36:42 +0300 |
commit | 3b23b5c638feae0ad6319440771b83a64a1f9ebe (patch) | |
tree | 16fbedd83ffa6a02904d3f93576c1de1674a0584 /intern/cycles/render/colorspace.h | |
parent | 7c78c20b6bf6f7dd00397c456fb9e2116febfca7 (diff) |
Images: don't (un)premultipy non-color data
The previous behavior here was wrong for some specific combinations of
settings, non-color RGB channels should never be affected by the alpha
channel.
Diffstat (limited to 'intern/cycles/render/colorspace.h')
-rw-r--r-- | intern/cycles/render/colorspace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/render/colorspace.h b/intern/cycles/render/colorspace.h index e7c7f943c2d..9fea2d6efc6 100644 --- a/intern/cycles/render/colorspace.h +++ b/intern/cycles/render/colorspace.h @@ -37,6 +37,9 @@ class ColorSpaceManager { const char *file_format, bool is_float); + /* Test if colorspace is for non-color data. */ + static bool colorspace_is_data(ustring colorspace); + /* Convert pixels in the specified colorspace to scene linear color for * rendering. Must be a colorspace returned from detect_known_colorspace. */ template<typename T> |