terrain is rendered at origin
code refactoring