switch orientation of cubes so +z is up; clean up functions
attempt depth texture; put on hold for now