Skip to content

Commit

Permalink
change default inversion setting because it looked wrong in renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
Theverat committed Aug 9, 2016
1 parent a1fefc5 commit 7a4fea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src_generators/normalmapgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a4fea3

Please sign in to comment.