From 7a4fea3fcdba475b1642853fb40595f16f5a2483 Mon Sep 17 00:00:00 2001 From: Theverat Date: Tue, 9 Aug 2016 12:15:23 +0200 Subject: [PATCH] change default inversion setting because it looked wrong in renderers --- src_generators/normalmapgenerator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src_generators/normalmapgenerator.cpp b/src_generators/normalmapgenerator.cpp index be524fb..743ac49 100644 --- a/src_generators/normalmapgenerator.cpp +++ b/src_generators/normalmapgenerator.cpp @@ -41,8 +41,11 @@ QImage NormalmapGenerator::calculateNormalmap(QImage input, Kernel kernel, doubl this->tileable = tileable; this->intensity = IntensityMap(input, mode, useRed, useGreen, useBlue, useAlpha); - if(invert) + if(!invert) { + // The default "non-inverted" normalmap looks wrong in renderers, + // so I use inversion by default intensity.invert(); + } QImage result(input.width(), input.height(), QImage::Format_ARGB32);