|
|
@ -34,15 +34,15 @@ public class WaterUtils { |
|
|
|
sceneCam.getFrustumBottom()); |
|
|
|
sceneCam.getFrustumBottom()); |
|
|
|
reflectionCam.setParallelProjection(sceneCam.isParallelProjection()); |
|
|
|
reflectionCam.setParallelProjection(sceneCam.isParallelProjection()); |
|
|
|
|
|
|
|
|
|
|
|
sceneTarget.set(sceneCam.getLocation()).addLocal(sceneCam.getDirection()); |
|
|
|
sceneTarget.set(sceneCam.getLocation()).addLocal(sceneCam.getDirection(vars.vect6)); |
|
|
|
reflectDirection = plane.reflect(sceneTarget, reflectDirection); |
|
|
|
reflectDirection = plane.reflect(sceneTarget, reflectDirection); |
|
|
|
reflectDirection.subtractLocal(camLoc); |
|
|
|
reflectDirection.subtractLocal(camLoc); |
|
|
|
|
|
|
|
|
|
|
|
sceneTarget.set(sceneCam.getLocation()).subtractLocal(sceneCam.getUp()); |
|
|
|
sceneTarget.set(sceneCam.getLocation()).subtractLocal(sceneCam.getUp(vars.vect6)); |
|
|
|
reflectUp = plane.reflect(sceneTarget, reflectUp); |
|
|
|
reflectUp = plane.reflect(sceneTarget, reflectUp); |
|
|
|
reflectUp.subtractLocal(camLoc); |
|
|
|
reflectUp.subtractLocal(camLoc); |
|
|
|
|
|
|
|
|
|
|
|
sceneTarget.set(sceneCam.getLocation()).addLocal(sceneCam.getLeft()); |
|
|
|
sceneTarget.set(sceneCam.getLocation()).addLocal(sceneCam.getLeft(vars.vect6)); |
|
|
|
reflectLeft = plane.reflect(sceneTarget, reflectLeft); |
|
|
|
reflectLeft = plane.reflect(sceneTarget, reflectLeft); |
|
|
|
reflectLeft.subtractLocal(camLoc); |
|
|
|
reflectLeft.subtractLocal(camLoc); |
|
|
|
|
|
|
|
|
|
|
|