Added rudimentary tree generation and now trees are not painted when off viewport