Fix issue #654
empirephoenix-patch-1
Yan 8 years ago committed by GitHub
parent 080a89e14b
commit 8e45937974
  1. 10
      jme3-effects/src/main/java/com/jme3/water/WaterFilter.java

@ -332,6 +332,11 @@ public class WaterFilter extends Filter {
oc.write(causticsIntensity, "causticsIntensity", 0.5f); oc.write(causticsIntensity, "causticsIntensity", 0.5f);
oc.write(useCaustics, "useCaustics", true); oc.write(useCaustics, "useCaustics", true);
//positional attributes
oc.write(center, "center", null);
oc.write(radius, "radius", 0f);
oc.write(shapeType.ordinal(), "shapeType", AreaShape.Circular.ordinal());
} }
@Override @Override
@ -377,6 +382,11 @@ public class WaterFilter extends Filter {
useCaustics = ic.readBoolean("useCaustics", true); useCaustics = ic.readBoolean("useCaustics", true);
//positional attributes
center = (Vector3f) ic.readSavable("center", null);
radius = ic.readFloat("radius", 0f);
int shapeType = ic.readInt("shapeType", AreaShape.Circular.ordinal());
this.shapeType = AreaShape.values()[shapeType];
} }
/** /**

Loading…
Cancel
Save