Smoth terrain rendering.

This may not be the best way of do this, but works for now.