added terrain renderers
little code refactoring - fixed problem with release mode