fix a typo in the shader maker conversion
authorRudolf Polzer <divverent@alientrap.org>
Tue, 28 Sep 2010 10:16:24 +0000 (12:16 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 28 Sep 2010 10:16:24 +0000 (12:16 +0200)
misc/tools/shadescript/shade.sh

index 175a59788bcdc8454e0eec767f623e26869e8fdc..1f95c425e1035da6737ead97a4b40198aae46d6b 100644 (file)
@@ -60,7 +60,7 @@ find "textures/$1" -type f -path "textures/*/*/*.*" -not -name '*_norm.*' -not -
                        ;;
                *metal*)
                        bounceScale=`echo "$bounceScale + 0.25" | bc -l`
-                       shaderHead="$shaderHead         surfaceparm metalsteps\n"
+                       shaderHead="$shaderHead surfaceparm metalsteps\n"
                        ;;
        esac
 
@@ -88,7 +88,7 @@ find "textures/$1" -type f -path "textures/*/*/*.*" -not -name '*_norm.*' -not -
 
        shaderDiffuse="$F"
        if [ -f "$F""_gloss.tga" ] || [ -f "$F""_gloss.jpg" ] || [ -f "$F""_gloss.png" ]; then
-               bounceScale=`echo "$bounceScale - 0.25" | bc -l`
+               bounceScale=`echo "$bounceScale + 0.25" | bc -l`
        fi
 
        if [ -f "$F""_qei.tga" ] || [ -f "$F""_qei.jpg" ] || [ -f "$F""_qei.png" ]; then