3dtrial/tinyrender3/run.sh

13 lines
234 B
Bash
Raw Normal View History

#!/bin/sh
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" >"$1.ppm"
./render "-zbuffer" >"$1_zbuffer.ppm"