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-04-29 14:53:10 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-04-29 14:53:10 +0400
commitb1b5274549fa98301be1248763db2f0aa4e0b4ef (patch)
treeabc024bd6922a3cdf332f4ba80848ab19e9723bd /intern/opencolorio/ocio_impl_glsl.cc
parent409a1d5c01f012cf883e1a896861396f24ca4d00 (diff)
Tweak allocation vars for XYZ space for more accurate GPU transform
Also extend 3DLUT edge size to 64 (1 meg of memory) to increase transform accuracy as well.
Diffstat (limited to 'intern/opencolorio/ocio_impl_glsl.cc')
-rw-r--r--intern/opencolorio/ocio_impl_glsl.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/intern/opencolorio/ocio_impl_glsl.cc b/intern/opencolorio/ocio_impl_glsl.cc
index dc82e60d66a..54be1e0f339 100644
--- a/intern/opencolorio/ocio_impl_glsl.cc
+++ b/intern/opencolorio/ocio_impl_glsl.cc
@@ -51,8 +51,7 @@ using namespace OCIO_NAMESPACE;
#include "ocio_impl.h"
-static const int LUT3D_EDGE_SIZE = 32;
-
+static const int LUT3D_EDGE_SIZE = 64;
/* **** OpenGL drawing routines using GLSL for color space transform ***** */
@@ -97,7 +96,7 @@ static const char *g_fragShaderText = ""
" col[0] *= inv_alpha;\n"
" col[1] *= inv_alpha;\n"
" col[2] *= inv_alpha;\n"
-"}\n"
+" }\n"
" gl_FragColor = OCIODisplay(col, tex2);\n"
"\n"
"}\n";