public void setFoamTexture(Texture2D foamTexture) {
        this.foamTexture = foamTexture;
        foamTexture.setWrap(WrapMode.Repeat);
        if (material != null) {
            material.setTexture("FoamMap", foamTexture);
        }
    }
Sets the foam texture.

@param foamTexture the foam texture.
jme3-effects/src/main/java/com/jme3/water/WaterFilter.java