protected void setFilterState(Filter filter, boolean enabled) {
        if (filters.contains(filter)) {
            filter.enabled = enabled;
            updateLastFilterIndex();
        }
    }
sets the filter to enabled or disabled

@param filter the Filter to modify (not null)
@param enabled true to enable, false to disable
jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java