some changes to terrain demo as I was writing it up