3dtrial/tinyrender4/run.sh
2024-07-28 21:19:28 -04:00

15 lines
251 B
Bash
Executable File

#!/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"
./render "-cpuprofile=$1.prof" "-p6file=$1.ppm"
# ./render "-zbuffer" >"$1_zbuffer.ppm"