public void setUseFoam(boolean useFoam) {
        this.useFoam = useFoam;
        if (material != null) {
            material.setBoolean("UseFoam", useFoam);
        }

    }
set to true to use foam with water
default true

@param useFoam true for foam, false for no foam (default=true)
jme3-effects/src/main/java/com/jme3/water/WaterFilter.java