@Override
    public void write(JmeExporter ex) throws IOException {
        super.write(ex);
        final OutputCapsule outputCapsule = ex.getCapsule(this);
        outputCapsule.write(redExponent, "redExponent", 1f);
        outputCapsule.write(greenExponent, "greenExponent", 1f);
        outputCapsule.write(blueExponent, "blueExponent", 1f);
        outputCapsule.write(lowerLimit, "lowerLimit", 0f);
        outputCapsule.write(upperLimit, "upperLimit", 1f);
        outputCapsule.write(redScale, "redScale", 1f);
        outputCapsule.write(greenScale, "greenScale", 1f);
        outputCapsule.write(blueScale, "blueScale", 1f);
    }
Serializes this filter, for example when saving to a J3O file.

@param ex the exporter to use (not null)
@throws IOException from the exporter
jme3-effects/src/main/java/com/jme3/post/filters/ContrastAdjustmentFilter.java