2024-07-30 02:25:23 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
echo "You must pass the basename for the .prof and .ppm"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Building"
|
|
|
|
go build -o render
|
|
|
|
echo "Running"
|
2024-07-30 03:09:23 +00:00
|
|
|
./render "-cpuprofile=$1.prof" "-p6file=$1.ppm" "-repeat=60" "-zofs=-0.75"
|
2024-07-30 02:25:23 +00:00
|
|
|
# ./render "-zbuffer" >"$1_zbuffer.ppm"
|