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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-09-09 13:48:26 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-09-09 13:48:26 +0400
commitcf8cddf07a34fe34ccb1223215c38de9effe6688 (patch)
treec5dea10e70e3043aa093ab7f97dffbe514b7cc09 /source/blender/blenkernel/intern/colortools.c
parent0392acc607d26f3fb2681c7d8b0e5ad3a2d50d9a (diff)
Film response curves implemented as a looks
This commit implement's OCIO's Looks idea which is about applying some color correction on the buffer before it get's affected by a display transform. This is mainly used to modify images in an artistics way. Currently we've got looks generated from film response curves for all sorts of cameras. Patch by both of me and Brecht.
Diffstat (limited to 'source/blender/blenkernel/intern/colortools.c')
-rw-r--r--source/blender/blenkernel/intern/colortools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index 7e878e86c1e..8d60e432c7e 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -1260,6 +1260,7 @@ void BKE_color_managed_view_settings_init(ColorManagedViewSettings *settings)
* for now use NONE to be compatible with all current files
*/
BLI_strncpy(settings->view_transform, "Default", sizeof(settings->view_transform));
+ BLI_strncpy(settings->look, "NONE", sizeof(settings->look));
settings->gamma = 1.0f;
settings->exposure = 0.0f;
@@ -1268,6 +1269,7 @@ void BKE_color_managed_view_settings_init(ColorManagedViewSettings *settings)
void BKE_color_managed_view_settings_copy(ColorManagedViewSettings *new_settings,
const ColorManagedViewSettings *settings)
{
+ BLI_strncpy(new_settings->look, settings->look, sizeof(new_settings->look));
BLI_strncpy(new_settings->view_transform, settings->view_transform, sizeof(new_settings->view_transform));
new_settings->flag = settings->flag;