#!/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 if [ "$VMAP_NOBSP" != "1" ]; then "$SCRPATH"/bin/vmap -v -custinfoparms -fs_basepath "$SCRPATH" -fs_game platform -threads $(nproc) -samplesize 8 $* fi if [ "$VMAP_NOVIS" != "1" ]; then "$SCRPATH"/bin/vmap -vis -v -fs_basepath "$SCRPATH" -fs_game platform $* fi if [ "$VMAP_NOLIGHT" != "1" ]; then "$SCRPATH"/bin/vmap -light -custinfoparms -fs_basepath "$SCRPATH" -v -fs_game platform -bounce 8 -fastbounce -samplesize 8 -threads $(nproc) -shade -shadeangle 60 -patchshadows $* fi