diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-13 10:36:45 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-12-13 10:36:45 +0400 |
commit | 5a91df32713b7ad9be6befa7124b31890063d91b (patch) | |
tree | 11309c67510bb0ffd29438318896cf86b8024c02 /intern/opencolorio/ocio_capi.cc | |
parent | 669b5902298f0f80159395d020657d6630a532ac (diff) |
Implement GPU-side dither
Summary:
Uses some magic pseudo-random which is actually a
texture coordinate hashing function.
TODOs:
- Dither noise is the same for all the frames.
- It's different from Floyd's dither we've been
using before.
- Currently CPU and GPU dithering used different
implementation. Ideally we need to use the same
dither in CPU.
Reviewers: brecht
Reviewed By: brecht
Differential Revision: http://developer.blender.org/D58
Diffstat (limited to 'intern/opencolorio/ocio_capi.cc')
-rw-r--r-- | intern/opencolorio/ocio_capi.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/opencolorio/ocio_capi.cc b/intern/opencolorio/ocio_capi.cc index 47ee3afddfd..a4f2db456e8 100644 --- a/intern/opencolorio/ocio_capi.cc +++ b/intern/opencolorio/ocio_capi.cc @@ -324,9 +324,9 @@ int OCIO_supportGLSLDraw(void) } int OCIO_setupGLSLDraw(struct OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRcPtr *processor, - OCIO_CurveMappingSettings *curve_mapping_settings, bool predivide) + OCIO_CurveMappingSettings *curve_mapping_settings, float dither, bool predivide) { - return (int) impl->setupGLSLDraw(state_r, processor, curve_mapping_settings, predivide); + return (int) impl->setupGLSLDraw(state_r, processor, curve_mapping_settings, dither, predivide); } void OCIO_finishGLSLDraw(struct OCIO_GLSLDrawState *state) |