diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-10 13:12:33 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-07-10 13:12:33 +0400 |
commit | 717ac64cb14b09660419cc4fa8b48e47ccacd854 (patch) | |
tree | 26393b4ccff0b4e9dbd580aec78a270649992da6 /source/blender/compositor/operations/COM_MathBaseOperation.h | |
parent | 63ad458dbafe9cecc8568fd4779b7568d06b81b2 (diff) |
Tomato: added option to clamp result of Mix RGB and Color Math nodes
Diffstat (limited to 'source/blender/compositor/operations/COM_MathBaseOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_MathBaseOperation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_MathBaseOperation.h b/source/blender/compositor/operations/COM_MathBaseOperation.h index be06537cbf0..e53176aea49 100644 --- a/source/blender/compositor/operations/COM_MathBaseOperation.h +++ b/source/blender/compositor/operations/COM_MathBaseOperation.h @@ -37,11 +37,15 @@ protected: SocketReader *m_inputValue1Operation; SocketReader *m_inputValue2Operation; + bool m_useClamp; + protected: /** * Default constructor */ MathBaseOperation(); + + void clampIfNeeded(float *color); public: /** * the inner loop of this program @@ -62,6 +66,8 @@ public: * Determine resolution */ void determineResolution(unsigned int resolution[], unsigned int preferredResolution[]); + + void setUseClamp(bool value) { this->m_useClamp = value; } }; class MathAddOperation : public MathBaseOperation { |