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:
Diffstat (limited to 'source/blender/compositor/operations/COM_LensGlowImageOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_LensGlowImageOperation.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp b/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp
index 935844a84f1..ee0a02e5fae 100644
--- a/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp
+++ b/source/blender/compositor/operations/COM_LensGlowImageOperation.cpp
@@ -23,13 +23,16 @@
#include "COM_LensGlowImageOperation.h"
#include "BLI_math.h"
-LensGlowImageOperation::LensGlowImageOperation(): NodeOperation() {
+LensGlowImageOperation::LensGlowImageOperation(): NodeOperation()
+{
this->addOutputSocket(COM_DT_COLOR);
}
-void LensGlowImageOperation::initExecution() {
+void LensGlowImageOperation::initExecution()
+{
this->scale = 1/20000.0f;
}
-void LensGlowImageOperation::executePixel(float* color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) {
+void LensGlowImageOperation::executePixel(float *color, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[])
+{
const float cs_r = 1.f, cs_g = 1.f, cs_b = 1.f;
const float v = 2.f*(y / (float)512.0f) - 1.f;
const float u = 2.f*(x / (float)512.0f) - 1.f;
@@ -42,10 +45,12 @@ void LensGlowImageOperation::executePixel(float* color, float x, float y, PixelS
color[3] = 1.0f;
}
-void LensGlowImageOperation::deinitExecution() {
+void LensGlowImageOperation::deinitExecution()
+{
}
-void LensGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[]) {
+void LensGlowImageOperation::determineResolution(unsigned int resolution[], unsigned int preferredResolution[])
+{
resolution[0] = 512;
resolution[1] = 512;
}