2)
;;
*)
- echo "Usage: $1 directory shader.template"
+ echo "Usage: from xonotic-maps.pk3dir directory, copy and edit shader.template, then"
+ echo " $0 texturepackname myshader.template"
exit 1
;;
esac
;;
*metal*)
bounceScale=`echo "$bounceScale + 0.25" | bc -l`
- shaderHead="$shaderHead surfaceparm metalsteps\n"
+ shaderHead="$shaderHead surfaceparm metalsteps\n"
;;
esac
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