terrain demo normal calculation