Render only objects that are currently in the viewport.

Made each view that renders many objects take into account if the object is actually inside the viewport or not. This might increase performance, especially for views that doesn't use the same texture for each object (such as the slice view).