Improvements to terrain examples.