From 45591c99a1168937bc794a0d1c0dd9da47dfa087 Mon Sep 17 00:00:00 2001 From: pspeed42 Date: Tue, 16 Sep 2014 00:03:22 -0400 Subject: [PATCH] Fixed a broken water height initialization issue that I inadvertently caused with my previous cleanup. --- jme3-effects/src/main/java/com/jme3/water/WaterFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java index 211dc9f8e..77ff253e7 100644 --- a/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java +++ b/jme3-effects/src/main/java/com/jme3/water/WaterFilter.java @@ -71,7 +71,6 @@ public class WaterFilter extends Filter { private Texture2D foamTexture; private Texture2D causticsTexture; private Texture2D heightTexture; - private Plane plane; private Camera reflectionCam; protected Ray ray = new Ray(); private Vector3f targetLocation = new Vector3f(); @@ -90,6 +89,7 @@ public class WaterFilter extends Filter { private Vector3f lightDirection = new Vector3f(0, -1, 0); private ColorRGBA lightColor = ColorRGBA.White; 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 deepWaterColor = new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f); private Vector3f colorExtinction = new Vector3f(5.0f, 20.0f, 30.0f);