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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-08 20:46:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-08 20:46:12 +0400
commit2a78c2d30405d17d804125e903e3fbec0f10d582 (patch)
treefd4f766bb4710cbbcecbc5c6049a529b8d8312fd /source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
parentbd3ec606517f0ca02d503a1856963b0a2ddc32e1 (diff)
improvement to the DOF node, after blurring the radius buffer (derived from the depth), overlay with the original so pixels in focus are not mixed with out of focus pixels.
Diffstat (limited to 'source/blender/compositor/operations/COM_FastGaussianBlurOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_FastGaussianBlurOperation.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
index 4560e1b25e3..32dc428c21c 100644
--- a/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
+++ b/source/blender/compositor/operations/COM_FastGaussianBlurOperation.h
@@ -42,11 +42,23 @@ public:
void initExecution();
};
+enum {
+ FAST_GAUSS_OVERLAY_MIN = -1,
+ FAST_GAUSS_OVERLAY_NONE = 0,
+ FAST_GAUSS_OVERLAY_MAX = 1
+};
+
class FastGaussianBlurValueOperation : public NodeOperation {
private:
float m_sigma;
MemoryBuffer *m_iirgaus;
SocketReader *m_inputprogram;
+
+ /**
+ * -1: re-mix with darker
+ * 0: do nothing
+ * 1 re-mix with lighter */
+ int m_overlay;
public:
FastGaussianBlurValueOperation();
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
@@ -56,6 +68,9 @@ public:
void deinitExecution();
void initExecution();
void setSigma(float sigma) { this->m_sigma = sigma; }
+
+ /* used for DOF blurring ZBuffer */
+ void setOverlay(int overlay) { this->m_overlay = overlay; }
};
#endif