@Override
    public void setProfiler(AppProfiler profiler) {
        this.prof = profiler;
    }
compute the index of the last filter to render
jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java