From 9747889c8859f87677f9950d060652b1c4bfdff0 Mon Sep 17 00:00:00 2001 From: Michel Mastriani Date: Tue, 7 Jan 2020 15:59:01 +0000 Subject: [PATCH] Variations02.h edited online with Bitbucket --- Source/Ember/Variations02.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Ember/Variations02.h b/Source/Ember/Variations02.h index 3d7b76d..a75b0d3 100644 --- a/Source/Ember/Variations02.h +++ b/Source/Ember/Variations02.h @@ -607,7 +607,7 @@ public: { T z = 1 + m_BlurZoomLength * rand.Frand01(); helper.Out.x = m_Weight * ((helper.In.x - m_BlurZoomX) * z + m_BlurZoomX); - helper.Out.y = m_Weight * ((helper.In.y - m_BlurZoomY) * z - m_BlurZoomY); + helper.Out.y = m_Weight * ((helper.In.y + m_BlurZoomY) * z - m_BlurZoomY); helper.Out.z = m_Weight * helper.In.z; } @@ -625,7 +625,7 @@ public: << "\t\treal_t z = fma(" << blurZoomLength << ", MwcNext01(mwc), 1);\n" << "\n" << "\t\tvOut.x = " << weight << " * fma((vIn.x - " << blurZoomX << "), z, " << blurZoomX << ");\n" - << "\t\tvOut.y = " << weight << " * fma((vIn.y - " << blurZoomY << "), z, -" << blurZoomY << ");\n" + << "\t\tvOut.y = " << weight << " * fma((vIn.y + " << blurZoomY << "), z, -" << blurZoomY << ");\n" << "\t\tvOut.z = " << weight << " * vIn.z;\n" << "\t}\n"; return ss.str();