public void setDuration(float duration) {
        this.duration = duration;
    }
Sets the duration of the filter default is 1 second

@param duration the desired duration (in seconds, default=1)
jme3-effects/src/main/java/com/jme3/post/filters/FadeFilter.java