From 0c324e9423722fa06e01d213476f4882f54cbdad Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 1 Sep 2011 09:15:43 +0200 Subject: [PATCH] use "match8" scale for offsetmapping --- misc/tools/fft-normalmap-to-heightmap-soft.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/fft-normalmap-to-heightmap-soft.sh b/misc/tools/fft-normalmap-to-heightmap-soft.sh index 9f861fc3..708d4448 100755 --- a/misc/tools/fft-normalmap-to-heightmap-soft.sh +++ b/misc/tools/fft-normalmap-to-heightmap-soft.sh @@ -39,6 +39,6 @@ extraoffset=`echo "($realmedian + $ofs / $realscale)" | bc -l` # # we need p_d^-1(p_t(x)) = 1 - (128 + 127 * x) / 255 # -extraoffset=`echo "(127.0 / 255.0) * (1 - $extraoffset)" | bc -l` +extraoffset="match8 "`echo "128 + 127 * $extraoffset" | bc -l` echo " dpoffsetmapping - $extrascale $extraoffset" -- 2.39.2