From: Rudolf Polzer Date: Thu, 1 Sep 2011 07:15:43 +0000 (+0200) Subject: use "match8" scale for offsetmapping X-Git-Tag: xonotic-v0.5.0~12 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0c324e9423722fa06e01d213476f4882f54cbdad;p=xonotic%2Fxonotic.git use "match8" scale for offsetmapping --- 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"