added frustum culling functionality to terrain