New terrain system - please test!

I tested the terrain demo in RenderPipeline. It starts at twilight but changes to day when I launch the day time editor. There are horizontal lines in the mist near the horizon. Occasional artifacts (black spots) on the terrain and some white artifacts in the distance (z-fighting?)

Lighting bugs in some of the other demos. Reflections only reflect the skybox, not other objects.

Ubuntu 16.04 64 bit

[>] CORE Using native core module
[>] RenderPipeline Using Python 2.7 with architecture linux_amd64
[>] RenderPipeline Using Panda3D 1.10.0 built on Aug 25 2016 21:36:34
[>] RenderPipeline Driver Version = 4.5.0 NVIDIA 361.42
[>] RenderPipeline Driver Vendor = NVIDIA Corporation
[>] RenderPipeline Driver Renderer = GeForce GTX 660/PCIe/SSE2

edit: There are also gaps in the terrain, it looks like the terrain is divided in 4 big tiles and there is a gap between each tile. There’s something weird going on with the sun and the shadows too.