Fixed a broken water height initialization issue that I

inadvertently caused with my previous cleanup.
experimental
pspeed42 10 years ago
parent b1211e55a4
commit 45591c99a1
  1. 2
      jme3-effects/src/main/java/com/jme3/water/WaterFilter.java

@ -71,7 +71,6 @@ public class WaterFilter extends Filter {
private Texture2D foamTexture; private Texture2D foamTexture;
private Texture2D causticsTexture; private Texture2D causticsTexture;
private Texture2D heightTexture; private Texture2D heightTexture;
private Plane plane;
private Camera reflectionCam; private Camera reflectionCam;
protected Ray ray = new Ray(); protected Ray ray = new Ray();
private Vector3f targetLocation = new Vector3f(); private Vector3f targetLocation = new Vector3f();
@ -90,6 +89,7 @@ public class WaterFilter extends Filter {
private Vector3f lightDirection = new Vector3f(0, -1, 0); private Vector3f lightDirection = new Vector3f(0, -1, 0);
private ColorRGBA lightColor = ColorRGBA.White; private ColorRGBA lightColor = ColorRGBA.White;
private float waterHeight = 0.0f; private float waterHeight = 0.0f;
private Plane plane = new Plane(Vector3f.UNIT_Y, waterHeight);
private ColorRGBA waterColor = new ColorRGBA(0.0078f, 0.3176f, 0.5f, 1.0f); private ColorRGBA waterColor = new ColorRGBA(0.0078f, 0.3176f, 0.5f, 1.0f);
private ColorRGBA deepWaterColor = new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f); private ColorRGBA deepWaterColor = new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f);
private Vector3f colorExtinction = new Vector3f(5.0f, 20.0f, 30.0f); private Vector3f colorExtinction = new Vector3f(5.0f, 20.0f, 30.0f);

Loading…
Cancel
Save