reworked renderer/terrain