3dtrial/tinyrender3_homework/run.sh

15 lines
251 B
Bash
Raw Permalink Normal View History

2024-07-28 22:01:15 +00:00
#!/bin/sh
2024-07-28 23:10:48 +00:00
set -e
2024-07-28 22:01:15 +00:00
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-29 00:59:38 +00:00
./render "-cpuprofile=$1.prof" "-p6file=$1.ppm"
# ./render "-zbuffer" >"$1_zbuffer.ppm"