Too lazy to comment
This commit is contained in:
27
tools/build_from_blender.sh
Executable file
27
tools/build_from_blender.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
DIR="$( cd -P "$( dirname "$0" )" && pwd )"
|
||||
ROOT=${DIR}/../
|
||||
MAPDIR=${ROOT}/id1/maps/
|
||||
|
||||
MAPNAME=test
|
||||
WORKING_DIR=/tmp
|
||||
|
||||
IN=${MAPNAME}.map
|
||||
OUT=${MAPNAME}.bsp
|
||||
|
||||
TOOLS_DIR=${ROOT}/tools/ericw_tools
|
||||
QBSP=${TOOLS_DIR}/qbsp
|
||||
VIS=${TOOLS_DIR}/vis
|
||||
LIGHT=${TOOLS_DIR}/light
|
||||
|
||||
pushd ${WORKING_DIR}
|
||||
${QBSP} -bsp2 ${IN} ${OUT}
|
||||
${VIS} -fast -level 4 -noambient ${OUT}
|
||||
${LIGHT} -bounce -soft -extra -extra4 -dirt -dirtdepth 128 ${OUT}
|
||||
cp ${OUT} ${MAPDIR}
|
||||
popd
|
||||
|
||||
pushd ${ROOT}
|
||||
#./quakespasm-sdl2 +map ${MAPNAME}
|
||||
|
||||
popd
|
||||
Reference in New Issue
Block a user