vmap script: Add check for the env vars VMAP_NOVIS/BSP/LIGHT
This commit is contained in:
parent
79382f833e
commit
0645b98036
2 changed files with 13 additions and 4 deletions
|
@ -91,7 +91,7 @@ Titles_Init(void)
|
|||
fs_titles = fopen("titles.txt", FILE_READ);
|
||||
|
||||
if (fs_titles < 0) {
|
||||
print("^1WARNING: ^7Could NOT load titles.txt");
|
||||
print("^1WARNING: ^7Could NOT load titles.txt\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
15
vmap
15
vmap
|
@ -8,6 +8,15 @@ if [ ! -f "$SCRPATH"/bin/vmap ]; then
|
|||
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 $*
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue