From 81253863cc900b329e7b67da9cc964737c33a239 Mon Sep 17 00:00:00 2001 From: Michel Mastriani Date: Sun, 3 Jan 2021 13:32:04 +0000 Subject: [PATCH] --Bug fixes -Pixel_flow sincos x,y was inverted --- Source/Ember/VariationsDC.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Ember/VariationsDC.h b/Source/Ember/VariationsDC.h index 393c3bb..8bd9d61 100644 --- a/Source/Ember/VariationsDC.h +++ b/Source/Ember/VariationsDC.h @@ -1569,7 +1569,7 @@ public: virtual void Func(IteratorHelper& helper, Point& outPoint, QTIsaac& rand) override { T xl, yl; - sincos(m_Rad, &xl, &yl); + sincos(m_Rad, &yl, &xl); auto blockx = (int)Floor(helper.In.x * m_Width);//Calculate which block we're in. blockx += int(2 - 4 * VarFuncs::Hash(int(blockx * m_Seed + 1)));//Varying width and length. auto blocky = (int)Floor(helper.In.y * m_Width); @@ -1600,7 +1600,7 @@ public: string rad = "parVars[" + ToUpper(m_Params[i++].Name()) + index; ss << "\t{\n" << "\t\treal_t xl, yl;\n" - << "\t\txl = sincos(" << rad << ", &yl);\n" + << "\t\tyl = sincos(" << rad << ", &xl);\n" << "\t\tint blockx = (int)floor(vIn.x * " << width << ");\n" << "\t\tblockx += (int)(2 - 4 * Hash((int)(blockx * (int)" << seed << " + 1)));\n" << "\t\tint blocky = (int)floor(vIn.y * " << width << ");\n"