speed-dreams/data/tracks/road/ole-road-1/generate-src.sh

25 lines
468 B
Bash
Raw Permalink Normal View History

2023-12-12 18:58:24 +01:00
#! /bin/bash
name=ole-road-1
category=road
topdir=/usr/local/share/games/torcs/tracks
datadir=$topdir/$category/$name
# elevation
#cd $topdir
#trackgen -a -E 1 -n $name -c $category
# main track
cd $topdir
trackgen -a -n $name -c $category
pwd
cp $datadir/$name.ac $datadir/${name}-bak.ac
# shadows
cd $datadir
accc +shad $name-bak.ac $name-shade.ac >/dev/null
accc -g $name.ac -l0 $name-bak.ac -l1 $name-shade.ac -d3 1000 -d2 500 -d1 300 -S 300 -es >/dev/null