Просмотр исходного кода

Add WaterFilter.getReflectionView method (#1951)

* Added WaterFilter.getReflectionView method.

* Update javadoc.
Ali-RS 2 лет назад
Родитель
Сommit
493195eae8
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      jme3-effects/src/main/java/com/jme3/water/WaterFilter.java

+ 10 - 1
jme3-effects/src/main/java/com/jme3/water/WaterFilter.java

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009-2021 jMonkeyEngine
+ * Copyright (c) 2009-2023 jMonkeyEngine
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -516,6 +516,15 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
         return reflectionScene;
     }
 
+    /**
+     * Gets the view port used to render reflection scene.
+     *
+     * @return the reflection view port.
+     */
+    public ViewPort getReflectionView() {
+        return reflectionView;
+    }
+
     /**
      * returns the waterTransparency value
      * @return the transparency value