#!/bin/sh SCRPATH="$( cd "$( dirname $(readlink -nf $0) )" && pwd )" PATH="$SCRPATH"/bin:"$PATH" if [ ! -f "$SCRPATH"/bin/vmap ]; then printf "Map compiler is not present, please run build_editor.sh\n" exit fi set -e "$SCRPATH"/bin/vmap -v -custinfoparms -fs_basepath "$SCRPATH" -fs_game platform -threads $(nproc) -samplesize 8 $* "$SCRPATH"/bin/vmap -vis -v -fs_basepath "$SCRPATH" -fs_game platform $* "$SCRPATH"/bin/vmap -light -custinfoparms -fs_basepath "$SCRPATH" -v -fs_game platform -bounce 8 -fastbounce -samplesize 8 -threads $(nproc) -shade -shadeangle 60 -patchshadows $*