public void setRenderFilter(Predicate<Geometry> filter) {
        renderFilter = filter;
    }
Set a render filter. Every geometry will be tested against this filter
before rendering and will only be rendered if the filter returns true.

@param filter the render filter
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java