Found an article on raymarching and adjusted it until I understood what was going on.  Still some work to do, but the basics are there.