Browse Source

resolve javadoc warnings in the jme3-effects library (#1519)

* jme3-effects: resolve javadoc warnings

* jme3-effects/build.gradle: enable doclint
Stephen Gold 4 years ago
parent
commit
c65e27ade8

+ 0 - 7
jme3-effects/build.gradle

@@ -5,10 +5,3 @@ if (!hasProperty('mainClass')) {
 dependencies {
 dependencies {
     compile project(':jme3-core')
     compile project(':jme3-core')
 }
 }
-
-javadoc {
-    // Disable doclint for JDK8+.
-    if (JavaVersion.current().isJava8Compatible()){
-        options.addStringOption('Xdoclint:none', '-quiet')
-    }
-}

+ 14 - 8
jme3-effects/src/main/java/com/jme3/post/filters/BloomFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -109,7 +109,8 @@ public class BloomFilter extends Filter {
 
 
     /**
     /**
      * Creates the bloom filter with the specific glow mode
      * Creates the bloom filter with the specific glow mode
-     * @param glowMode
+     *
+     * @param glowMode the desired mode (default=Scene)
      */
      */
     public BloomFilter(GlowMode glowMode) {
     public BloomFilter(GlowMode glowMode) {
         this();
         this();
@@ -234,7 +235,8 @@ public class BloomFilter extends Filter {
 
 
     /**
     /**
      * intensity of the bloom effect default is 2.0
      * intensity of the bloom effect default is 2.0
-     * @param bloomIntensity
+     *
+     * @param bloomIntensity the desired intensity (default=2)
      */
      */
     public void setBloomIntensity(float bloomIntensity) {
     public void setBloomIntensity(float bloomIntensity) {
         this.bloomIntensity = bloomIntensity;
         this.bloomIntensity = bloomIntensity;
@@ -250,7 +252,8 @@ public class BloomFilter extends Filter {
 
 
     /**
     /**
      * sets The spread of the bloom default is 1.5f
      * sets The spread of the bloom default is 1.5f
-     * @param blurScale
+     *
+     * @param blurScale the desired scale (default=1.5)
      */
      */
     public void setBlurScale(float blurScale) {
     public void setBlurScale(float blurScale) {
         this.blurScale = blurScale;
         this.blurScale = blurScale;
@@ -267,7 +270,8 @@ public class BloomFilter extends Filter {
 
 
     /**
     /**
      * Define the color threshold on which the bloom will be applied (0.0 to 1.0)
      * Define the color threshold on which the bloom will be applied (0.0 to 1.0)
-     * @param exposureCutOff
+     *
+     * @param exposureCutOff the desired threshold (≥0, ≤1, default=0)
      */
      */
     public void setExposureCutOff(float exposureCutOff) {
     public void setExposureCutOff(float exposureCutOff) {
         this.exposureCutOff = exposureCutOff;
         this.exposureCutOff = exposureCutOff;
@@ -284,8 +288,9 @@ public class BloomFilter extends Filter {
 
 
     /**
     /**
      * defines how many time the bloom extracted color will be multiplied by itself. default id 5.0<br>
      * defines how many time the bloom extracted color will be multiplied by itself. default id 5.0<br>
-     * a high value will reduce rough edges in the bloom and somhow the range of the bloom area     * 
-     * @param exposurePower
+     * a high value will reduce rough edges in the bloom and somhow the range of the bloom area
+     *
+     * @param exposurePower the desired exponent (default=5)
      */
      */
     public void setExposurePower(float exposurePower) {
     public void setExposurePower(float exposurePower) {
         this.exposurePower = exposurePower;
         this.exposurePower = exposurePower;
@@ -303,7 +308,8 @@ public class BloomFilter extends Filter {
     /**
     /**
      * Sets the downSampling factor : the size of the computed texture will be divided by this factor. default is 1 for no downsampling
      * Sets the downSampling factor : the size of the computed texture will be divided by this factor. default is 1 for no downsampling
      * A 2 value is a good way of widening the blur
      * A 2 value is a good way of widening the blur
-     * @param downSamplingFactor
+     *
+     * @param downSamplingFactor the desired factor (default=1)
      */
      */
     public void setDownSamplingFactor(float downSamplingFactor) {
     public void setDownSamplingFactor(float downSamplingFactor) {
         this.downSamplingFactor = downSamplingFactor;
         this.downSamplingFactor = downSamplingFactor;

+ 15 - 8
jme3-effects/src/main/java/com/jme3/post/filters/CartoonEdgeFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -124,7 +124,8 @@ public class CartoonEdgeFilter extends Filter {
     /**
     /**
      * sets the depth sensitivity<br>
      * sets the depth sensitivity<br>
      * defines how much depth will influence edges, default is 10
      * defines how much depth will influence edges, default is 10
-     * @param depthSensitivity 
+     *
+     * @param depthSensitivity the desired sensitivity (default=10)
      */
      */
     public void setDepthSensitivity(float depthSensitivity) {
     public void setDepthSensitivity(float depthSensitivity) {
         this.depthSensitivity = depthSensitivity;
         this.depthSensitivity = depthSensitivity;
@@ -145,7 +146,8 @@ public class CartoonEdgeFilter extends Filter {
     /**
     /**
      * sets the depth threshold<br>
      * sets the depth threshold<br>
      * Defines at what threshold of difference of depth an edge is outlined default is 0.1f
      * Defines at what threshold of difference of depth an edge is outlined default is 0.1f
-     * @param depthThreshold 
+     *
+     * @param depthThreshold the desired threshold (default=0.1)
      */
      */
     public void setDepthThreshold(float depthThreshold) {
     public void setDepthThreshold(float depthThreshold) {
         this.depthThreshold = depthThreshold;
         this.depthThreshold = depthThreshold;
@@ -166,7 +168,8 @@ public class CartoonEdgeFilter extends Filter {
     /**
     /**
      * sets the edge intensity<br>
      * sets the edge intensity<br>
      * Defineshow visible will be the outlined edges
      * Defineshow visible will be the outlined edges
-     * @param edgeIntensity 
+     *
+     * @param edgeIntensity the desired intensity (default=1)
      */
      */
     public void setEdgeIntensity(float edgeIntensity) {
     public void setEdgeIntensity(float edgeIntensity) {
         this.edgeIntensity = edgeIntensity;
         this.edgeIntensity = edgeIntensity;
@@ -185,7 +188,8 @@ public class CartoonEdgeFilter extends Filter {
 
 
     /**
     /**
      * sets the witdh of the edge in pixels default is 1
      * sets the witdh of the edge in pixels default is 1
-     * @param edgeWidth 
+     *
+     * @param edgeWidth the desired width (in pixels, default=1)
      */
      */
     public void setEdgeWidth(float edgeWidth) {
     public void setEdgeWidth(float edgeWidth) {
         this.edgeWidth = edgeWidth;
         this.edgeWidth = edgeWidth;
@@ -206,7 +210,8 @@ public class CartoonEdgeFilter extends Filter {
 
 
     /**
     /**
      * sets the normals sensitivity default is 1
      * sets the normals sensitivity default is 1
-     * @param normalSensitivity 
+     *
+     * @param normalSensitivity the desired sensitivity (default=1)
      */
      */
     public void setNormalSensitivity(float normalSensitivity) {
     public void setNormalSensitivity(float normalSensitivity) {
         this.normalSensitivity = normalSensitivity;
         this.normalSensitivity = normalSensitivity;
@@ -227,7 +232,8 @@ public class CartoonEdgeFilter extends Filter {
 
 
     /**
     /**
      * sets the normal threshold default is 0.5
      * sets the normal threshold default is 0.5
-     * @param normalThreshold 
+     *
+     * @param normalThreshold the desired threshold (default=0.5)
      */
      */
     public void setNormalThreshold(float normalThreshold) {
     public void setNormalThreshold(float normalThreshold) {
         this.normalThreshold = normalThreshold;
         this.normalThreshold = normalThreshold;
@@ -246,7 +252,8 @@ public class CartoonEdgeFilter extends Filter {
 
 
     /**
     /**
      * Sets the edge color, default is black
      * Sets the edge color, default is black
-     * @param edgeColor
+     *
+     * @param edgeColor the desired color (alias created, default=(0,0,0,1))
      */
      */
     public void setEdgeColor(ColorRGBA edgeColor) {
     public void setEdgeColor(ColorRGBA edgeColor) {
         this.edgeColor = edgeColor;
         this.edgeColor = edgeColor;

+ 6 - 4
jme3-effects/src/main/java/com/jme3/post/filters/ColorOverlayFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2018 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -61,7 +61,8 @@ public class ColorOverlayFilter extends Filter {
 
 
     /**
     /**
      * creates a colorOverlayFilter with the given color
      * creates a colorOverlayFilter with the given color
-     * @param color 
+     *
+     * @param color the desired color (default=(1,1,1,1), alias created)
      */
      */
     public ColorOverlayFilter(ColorRGBA color) {
     public ColorOverlayFilter(ColorRGBA color) {
         this();
         this();
@@ -82,8 +83,9 @@ public class ColorOverlayFilter extends Filter {
     }
     }
 
 
     /**
     /**
-     * sets the color 
-     * @param color 
+     * sets the color
+     *
+     * @param color the desired color (default=(1,1,1,1), alias created)
      */
      */
     public void setColor(final ColorRGBA color) {
     public void setColor(final ColorRGBA color) {
         this.color = color;
         this.color = color;

+ 3 - 3
jme3-effects/src/main/java/com/jme3/post/filters/ComposeFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -68,7 +68,7 @@ public class ComposeFilter extends Filter {
     /**
     /**
      * creates a ComposeFilter with the given texture
      * creates a ComposeFilter with the given texture
      *
      *
-     * @param compositeTexture
+     * @param compositeTexture the texture to use (alias created)
      */
      */
     public ComposeFilter(Texture2D compositeTexture) {
     public ComposeFilter(Texture2D compositeTexture) {
         this();
         this();
@@ -93,7 +93,7 @@ public class ComposeFilter extends Filter {
     /**
     /**
      * sets the compositeTexture
      * sets the compositeTexture
      *
      *
-     * @param compositeTexture
+     * @param compositeTexture the desired texture (alias created)
      */
      */
     public void setCompositeTexture(Texture2D compositeTexture) {
     public void setCompositeTexture(Texture2D compositeTexture) {
         this.compositeTexture = compositeTexture;
         this.compositeTexture = compositeTexture;

+ 34 - 7
jme3-effects/src/main/java/com/jme3/post/filters/CrossHatchFilter.java

@@ -114,7 +114,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Sets color used to draw lines
      * Sets color used to draw lines
-     * @param lineColor 
+     *
+     * @param lineColor the desired color (alias created, default=(0,0,0,1))
      */
      */
     public void setLineColor(ColorRGBA lineColor) {
     public void setLineColor(ColorRGBA lineColor) {
         this.lineColor = lineColor;
         this.lineColor = lineColor;
@@ -125,7 +126,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Sets color used as background
      * Sets color used as background
-     * @param paperColor 
+     *
+     * @param paperColor the desired color (alias created, default=(1,1,1,1))
      */
      */
     public void setPaperColor(ColorRGBA paperColor) {
     public void setPaperColor(ColorRGBA paperColor) {
         this.paperColor = paperColor;
         this.paperColor = paperColor;
@@ -136,7 +138,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Sets color influence of original image on lines drawn
      * Sets color influence of original image on lines drawn
-     * @param colorInfluenceLine 
+     *
+     * @param colorInfluenceLine the desired factor (default=0.8) 
      */
      */
     public void setColorInfluenceLine(float colorInfluenceLine) {
     public void setColorInfluenceLine(float colorInfluenceLine) {
         this.colorInfluenceLine = colorInfluenceLine;
         this.colorInfluenceLine = colorInfluenceLine;
@@ -147,7 +150,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Sets color influence of original image on non-line areas
      * Sets color influence of original image on non-line areas
-     * @param colorInfluencePaper 
+     *
+     * @param colorInfluencePaper the desired factor (default=0.1)
      */
      */
     public void setColorInfluencePaper(float colorInfluencePaper) {
     public void setColorInfluencePaper(float colorInfluencePaper) {
         this.colorInfluencePaper = colorInfluencePaper;
         this.colorInfluencePaper = colorInfluencePaper;
@@ -159,7 +163,8 @@ public class CrossHatchFilter extends Filter {
     /**
     /**
      * Sets line/paper color ratio for areas with values less than luminance5,
      * Sets line/paper color ratio for areas with values less than luminance5,
      * really dark areas get no lines but a filled blob instead
      * really dark areas get no lines but a filled blob instead
-     * @param fillValue 
+     *
+     * @param fillValue the desired ratio (default=0.9)
      */
      */
     public void setFillValue(float fillValue) {
     public void setFillValue(float fillValue) {
         this.fillValue = fillValue;
         this.fillValue = fillValue;
@@ -195,7 +200,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Sets the thickness of lines drawn
      * Sets the thickness of lines drawn
-     * @param lineThickness 
+     *
+     * @param lineThickness the desired thickness (in pixels, default=1)
      */
      */
     public void setLineThickness(float lineThickness) {
     public void setLineThickness(float lineThickness) {
         this.lineThickness = lineThickness;
         this.lineThickness = lineThickness;
@@ -208,7 +214,8 @@ public class CrossHatchFilter extends Filter {
      * Sets minimum distance between lines drawn
      * Sets minimum distance between lines drawn
      * Primary lines are drawn at 2*lineDistance
      * Primary lines are drawn at 2*lineDistance
      * Secondary lines are drawn at lineDistance
      * Secondary lines are drawn at lineDistance
-     * @param lineDistance 
+     *
+     * @param lineDistance the desired distance (in pixels, default=4)
      */
      */
     public void setLineDistance(float lineDistance) {
     public void setLineDistance(float lineDistance) {
         this.lineDistance = lineDistance;
         this.lineDistance = lineDistance;
@@ -235,6 +242,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns current influence of image colors on lines
      * Returns current influence of image colors on lines
+     *
+     * @return the influence factor
      */
      */
     public float getColorInfluenceLine() {
     public float getColorInfluenceLine() {
         return colorInfluenceLine;
         return colorInfluenceLine;
@@ -242,6 +251,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns current influence of image colors on paper background
      * Returns current influence of image colors on paper background
+     *
+     * @return the influence factor
      */
      */
     public float getColorInfluencePaper() {
     public float getColorInfluencePaper() {
         return colorInfluencePaper;
         return colorInfluencePaper;
@@ -249,6 +260,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns line/paper color ratio for blobs
      * Returns line/paper color ratio for blobs
+     *
+     * @return the ratio
      */
      */
     public float getFillValue() {
     public float getFillValue() {
         return fillValue;
         return fillValue;
@@ -256,6 +269,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns the thickness of the lines drawn
      * Returns the thickness of the lines drawn
+     *
+     * @return the thickness (in pixels)
      */
      */
     public float getLineThickness() {
     public float getLineThickness() {
         return lineThickness;
         return lineThickness;
@@ -263,6 +278,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns minimum distance between lines
      * Returns minimum distance between lines
+     *
+     * @return the distance (in pixels)
      */
      */
     public float getLineDistance() {
     public float getLineDistance() {
         return lineDistance;
         return lineDistance;
@@ -270,6 +287,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns threshold for lines 1
      * Returns threshold for lines 1
+     *
+     * @return the first luminance threshold
      */
      */
     public float getLuminance1() {
     public float getLuminance1() {
         return luminance1;
         return luminance1;
@@ -277,6 +296,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns threshold for lines 2
      * Returns threshold for lines 2
+     *
+     * @return the 2nd luminance threshold
      */
      */
     public float getLuminance2() {
     public float getLuminance2() {
         return luminance2;
         return luminance2;
@@ -284,6 +305,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns threshold for lines 3
      * Returns threshold for lines 3
+     *
+     * @return the 3rd luminance threshold
      */
      */
     public float getLuminance3() {
     public float getLuminance3() {
         return luminance3;
         return luminance3;
@@ -291,6 +314,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns threshold for lines 4
      * Returns threshold for lines 4
+     *
+     * @return the 4th luminance threshold
      */
      */
     public float getLuminance4() {
     public float getLuminance4() {
         return luminance4;
         return luminance4;
@@ -298,6 +323,8 @@ public class CrossHatchFilter extends Filter {
 
 
     /**
     /**
      * Returns threshold for blobs
      * Returns threshold for blobs
+     *
+     * @return the 5th luminance threshold
      */
      */
     public float getLuminance5() {
     public float getLuminance5() {
         return luminance5;
         return luminance5;

+ 11 - 1
jme3-effects/src/main/java/com/jme3/post/filters/DepthOfFieldFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -98,6 +98,8 @@ public class DepthOfFieldFilter extends Filter {
 
 
     /**
     /**
      *  Sets the distance at which objects are purely in focus.
      *  Sets the distance at which objects are purely in focus.
+     *
+     * @param f the desired distance (in world units, default=50)
      */
      */
     public void setFocusDistance(float f) {
     public void setFocusDistance(float f) {
 
 
@@ -120,6 +122,8 @@ public class DepthOfFieldFilter extends Filter {
      *  Sets the range to either side of focusDistance where the
      *  Sets the range to either side of focusDistance where the
      *  objects go gradually out of focus.  Less than focusDistance - focusRange
      *  objects go gradually out of focus.  Less than focusDistance - focusRange
      *  and greater than focusDistance + focusRange, objects are maximally "blurred".
      *  and greater than focusDistance + focusRange, objects are maximally "blurred".
+     *
+     * @param f the desired half extent (in world units, default=10)
      */
      */
     public void setFocusRange(float f) {
     public void setFocusRange(float f) {
         this.focusRange = f;
         this.focusRange = f;
@@ -148,6 +152,8 @@ public class DepthOfFieldFilter extends Filter {
      *%MINIFYHTMLc3d0cd9fab65de6875a381fd3f83e1b338%*
      *%MINIFYHTMLc3d0cd9fab65de6875a381fd3f83e1b338%*
      *  Where 'x' is the texel being modified.  Setting blur scale higher
      *  Where 'x' is the texel being modified.  Setting blur scale higher
      *  than 1 spaces the samples out.
      *  than 1 spaces the samples out.
+     *
+     * @param f the desired filter scale (default=1)
      */
      */
     public void setBlurScale(float f) {
     public void setBlurScale(float f) {
         this.blurScale = f;
         this.blurScale = f;
@@ -178,6 +184,8 @@ public class DepthOfFieldFilter extends Filter {
      *  the near-camera blurring and should be set smaller than the default
      *  the near-camera blurring and should be set smaller than the default
      *  or to 0 to disable completely.  Sometimes that cut-off is desired if
      *  or to 0 to disable completely.  Sometimes that cut-off is desired if
      *  mid-to-far field unfocusing is all that is desired.</p>
      *  mid-to-far field unfocusing is all that is desired.</p>
+     *
+     * @param f the desired blur factor (default=0.2)
      */
      */
     public void setBlurThreshold( float f ) {
     public void setBlurThreshold( float f ) {
         this.blurThreshold = f;
         this.blurThreshold = f;
@@ -200,6 +208,8 @@ public class DepthOfFieldFilter extends Filter {
      *  is rendered as gray scale.  This can be used to more easily visualize
      *  is rendered as gray scale.  This can be used to more easily visualize
      *  where in your view the focus is centered and how steep the gradient/cutoff
      *  where in your view the focus is centered and how steep the gradient/cutoff
      *  is, etc..
      *  is, etc..
+     *
+     * @param b true to enable debugging, false to disable it (default=false)
      */
      */
     public void setDebugUnfocus( boolean b ) {
     public void setDebugUnfocus( boolean b ) {
         this.debugUnfocus = b;
         this.debugUnfocus = b;

+ 2 - 2
jme3-effects/src/main/java/com/jme3/post/filters/FXAAFilter.java

@@ -86,7 +86,7 @@ public class FXAAFilter extends Filter {
     /**
     /**
      * set to 0.0f for higher quality
      * set to 0.0f for higher quality
      *
      *
-     * @param subPixelShift
+     * @param subPixelShift the desired shift (default=0.25)
      */
      */
     public void setSubPixelShift(float subPixelShift) {
     public void setSubPixelShift(float subPixelShift) {
         this.subPixelShift = subPixelShift;
         this.subPixelShift = subPixelShift;
@@ -98,7 +98,7 @@ public class FXAAFilter extends Filter {
     /**
     /**
      * set to 0.0f for higher quality
      * set to 0.0f for higher quality
      *
      *
-     * @param reduceMul
+     * @param reduceMul the desired value (default=0.125)
      */
      */
     public void setReduceMul(float reduceMul) {
     public void setReduceMul(float reduceMul) {
         this.reduceMul = reduceMul;
         this.reduceMul = reduceMul;

+ 7 - 4
jme3-effects/src/main/java/com/jme3/post/filters/FadeFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,8 @@ public class FadeFilter extends Filter {
 
 
     /**
     /**
      * Creates a FadeFilter with the given duration
      * Creates a FadeFilter with the given duration
-     * @param duration 
+     *
+     * @param duration the desired duration (in seconds, default=1)
      */
      */
     public FadeFilter(float duration) {
     public FadeFilter(float duration) {
         this();
         this();
@@ -109,7 +110,8 @@ public class FadeFilter extends Filter {
 
 
     /**
     /**
      * Sets the duration of the filter default is 1 second
      * Sets the duration of the filter default is 1 second
-     * @param duration 
+     *
+     * @param duration the desired duration (in seconds, default=1)
      */
      */
     public void setDuration(float duration) {
     public void setDuration(float duration) {
         this.duration = duration;
         this.duration = duration;
@@ -164,7 +166,8 @@ public class FadeFilter extends Filter {
     /**
     /**
      * sets the fade value
      * sets the fade value
      * can be used to force complete black or compete scene
      * can be used to force complete black or compete scene
-     * @param value 
+     *
+     * @param value the desired value (default=1)
      */
      */
     public void setValue(float value) {
     public void setValue(float value) {
         this.value = value;       
         this.value = value;       

+ 7 - 4
jme3-effects/src/main/java/com/jme3/post/filters/FogFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -103,7 +103,8 @@ public class FogFilter extends Filter {
 
 
     /**
     /**
      * Sets the color of the fog
      * Sets the color of the fog
-     * @param fogColor
+     *
+     * @param fogColor the desired color (alias created, default=(1,1,1,1))
      */
      */
     public void setFogColor(ColorRGBA fogColor) {
     public void setFogColor(ColorRGBA fogColor) {
         if (material != null) {
         if (material != null) {
@@ -122,7 +123,8 @@ public class FogFilter extends Filter {
 
 
     /**
     /**
      * Sets the density of the fog, a high value gives a thick fog
      * Sets the density of the fog, a high value gives a thick fog
-     * @param fogDensity
+     *
+     * @param fogDensity the desired density (default=0.7)
      */
      */
     public void setFogDensity(float fogDensity) {
     public void setFogDensity(float fogDensity) {
         if (material != null) {
         if (material != null) {
@@ -141,7 +143,8 @@ public class FogFilter extends Filter {
 
 
     /**
     /**
      * the distance of the fog. the higer the value the distant the fog looks
      * the distance of the fog. the higer the value the distant the fog looks
-     * @param fogDistance
+     *
+     * @param fogDistance the desired distance (in world units, default=1000)
      */
      */
     public void setFogDistance(float fogDistance) {
     public void setFogDistance(float fogDistance) {
         if (material != null) {
         if (material != null) {

+ 1 - 1
jme3-effects/src/main/java/com/jme3/post/filters/GammaCorrectionFilter.java

@@ -76,7 +76,7 @@ public class GammaCorrectionFilter extends Filter {
     /**
     /**
      * set to 0.0 to disable gamma correction
      * set to 0.0 to disable gamma correction
      *
      *
-     * @param gamma
+     * @param gamma the desired exponent (&gt;0, default=2.2)
      */
      */
     public final void setGamma(float gamma) {
     public final void setGamma(float gamma) {
         if(gamma<=0){
         if(gamma<=0){

+ 16 - 7
jme3-effects/src/main/java/com/jme3/post/filters/LightScatteringFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -75,7 +75,9 @@ public class LightScatteringFilter extends Filter {
 
 
     /**
     /**
      * Creates a lightScatteringFilter
      * Creates a lightScatteringFilter
-     * @param lightPosition 
+     *
+     * @param lightPosition the desired location (in world coordinates, alias
+     * created)
      */
      */
     public LightScatteringFilter(Vector3f lightPosition) {
     public LightScatteringFilter(Vector3f lightPosition) {
         this();
         this();
@@ -142,7 +144,9 @@ public class LightScatteringFilter extends Filter {
     /**
     /**
      * sets the blur start<br>
      * sets the blur start<br>
      * at which distance from the light source the effect starts default is 0.02
      * at which distance from the light source the effect starts default is 0.02
-     * @param blurStart 
+     *
+     * @param blurStart the desired start distance (in world units,
+     * default=0.02)
      */
      */
     public void setBlurStart(float blurStart) {
     public void setBlurStart(float blurStart) {
         this.blurStart = blurStart;
         this.blurStart = blurStart;
@@ -159,7 +163,8 @@ public class LightScatteringFilter extends Filter {
 
 
     /**
     /**
      * sets the blur width default is 0.9
      * sets the blur width default is 0.9
-     * @param blurWidth 
+     *
+     * @param blurWidth the desired width (default=0.9)
      */
      */
     public void setBlurWidth(float blurWidth) {
     public void setBlurWidth(float blurWidth) {
         this.blurWidth = blurWidth;
         this.blurWidth = blurWidth;
@@ -177,7 +182,8 @@ public class LightScatteringFilter extends Filter {
 
 
     /**
     /**
      * sets how much the effect is visible over the rendered scene default is 1.4
      * sets how much the effect is visible over the rendered scene default is 1.4
-     * @param lightDensity 
+     *
+     * @param lightDensity the desired density (default=1.4)
      */
      */
     public void setLightDensity(float lightDensity) {
     public void setLightDensity(float lightDensity) {
         this.lightDensity = lightDensity;
         this.lightDensity = lightDensity;
@@ -193,7 +199,9 @@ public class LightScatteringFilter extends Filter {
 
 
     /**
     /**
      * sets the light position
      * sets the light position
-     * @param lightPosition 
+     *
+     * @param lightPosition the desired location (in world coordinates, alias
+     * created)
      */
      */
     public void setLightPosition(Vector3f lightPosition) {
     public void setLightPosition(Vector3f lightPosition) {
         this.lightPosition = lightPosition;
         this.lightPosition = lightPosition;
@@ -210,7 +218,8 @@ public class LightScatteringFilter extends Filter {
     /**
     /**
      * sets the number of samples for the radial blur default is 50
      * sets the number of samples for the radial blur default is 50
      * the higher the value the higher the quality, but the slower the performance.
      * the higher the value the higher the quality, but the slower the performance.
-     * @param nbSamples 
+     *
+     * @param nbSamples the desired number of samples (default=50)
      */
      */
     public void setNbSamples(int nbSamples) {
     public void setNbSamples(int nbSamples) {
         this.nbSamples = nbSamples;
         this.nbSamples = nbSamples;

+ 17 - 3
jme3-effects/src/main/java/com/jme3/post/filters/PosterizationFilter.java

@@ -64,7 +64,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Creates a posterization Filter with the given number of colors
      * Creates a posterization Filter with the given number of colors
-     * @param numColors 
+     *
+     * @param numColors the desired number of colors (&gt;0, default=8)
      */
      */
     public PosterizationFilter(int numColors) {
     public PosterizationFilter(int numColors) {
         this();
         this();
@@ -73,8 +74,9 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Creates a posterization Filter with the given number of colors and gamma
      * Creates a posterization Filter with the given number of colors and gamma
-     * @param numColors
-     * @param gamma 
+     *
+     * @param numColors the desired number of colors (&gt;0, default=8)
+     * @param gamma the desired exponent (default=0.6)
      */
      */
     public PosterizationFilter(int numColors, float gamma) {
     public PosterizationFilter(int numColors, float gamma) {
         this(numColors);
         this(numColors);
@@ -96,6 +98,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Sets number of color levels used to draw the screen
      * Sets number of color levels used to draw the screen
+     * 
+     * @param numColors the desired number of colors (&gt;0, default=8)
      */
      */
     public void setNumColors(int numColors) {
     public void setNumColors(int numColors) {
         this.numColors = numColors;
         this.numColors = numColors;
@@ -106,6 +110,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Sets gamma level used to enhange visual quality
      * Sets gamma level used to enhange visual quality
+     * 
+     * @param gamma the desired exponent (default=0.6)
      */
      */
     public void setGamma(float gamma) {
     public void setGamma(float gamma) {
         this.gamma = gamma;
         this.gamma = gamma;
@@ -116,6 +122,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Sets current strength value, i.e. influence on final image
      * Sets current strength value, i.e. influence on final image
+     *
+     * @param strength the desired influence factor (default=1)
      */
      */
     public void setStrength(float strength) {
     public void setStrength(float strength) {
         this.strength = strength;
         this.strength = strength;
@@ -126,6 +134,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Returns number of color levels used
      * Returns number of color levels used
+     *
+     * @return the count (&gt;0)
      */
      */
     public int getNumColors() {
     public int getNumColors() {
         return numColors;
         return numColors;
@@ -133,6 +143,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Returns current gamma value
      * Returns current gamma value
+     *
+     * @return the exponent
      */
      */
     public float getGamma() {
     public float getGamma() {
         return gamma;
         return gamma;
@@ -140,6 +152,8 @@ public class PosterizationFilter extends Filter {
 
 
     /**
     /**
      * Returns current strength value, i.e. influence on final image
      * Returns current strength value, i.e. influence on final image
+     *
+     * @return the influence factor
      */
      */
     public float getStrength() {
     public float getStrength() {
         return strength;
         return strength;

+ 6 - 4
jme3-effects/src/main/java/com/jme3/post/filters/RadialBlurFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -89,7 +89,8 @@ public class RadialBlurFilter extends Filter {
 
 
     /**
     /**
      * sets the samples distances default is 1
      * sets the samples distances default is 1
-     * @param sampleDist 
+     *
+     * @param sampleDist the desired distance (default=1)
      */
      */
     public void setSampleDistance(float sampleDist) {
     public void setSampleDistance(float sampleDist) {
         this.sampleDist = sampleDist;
         this.sampleDist = sampleDist;
@@ -107,7 +108,7 @@ public class RadialBlurFilter extends Filter {
 
 
     /**
     /**
      * 
      * 
-     * @param sampleDist
+     * @param sampleDist the desired distance (default=1)
      * @deprecated use {@link #setSampleDistance(float sampleDist)}
      * @deprecated use {@link #setSampleDistance(float sampleDist)}
      */
      */
     @Deprecated
     @Deprecated
@@ -125,7 +126,8 @@ public class RadialBlurFilter extends Filter {
 
 
     /**
     /**
      * sets the sample strength default is 2.2
      * sets the sample strength default is 2.2
-     * @param sampleStrength 
+     *
+     * @param sampleStrength the desired strength (default=2.2)
      */
      */
     public void setSampleStrength(float sampleStrength) {
     public void setSampleStrength(float sampleStrength) {
         this.sampleStrength = sampleStrength;
         this.sampleStrength = sampleStrength;

+ 14 - 6
jme3-effects/src/main/java/com/jme3/post/ssao/SSAOFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2020 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -208,7 +208,8 @@ public class SSAOFilter extends Filter {
 
 
     /**
     /**
      * Sets the width of the occlusion cone considered by the occludee default is 0.1f
      * Sets the width of the occlusion cone considered by the occludee default is 0.1f
-     * @param bias 
+     *
+     * @param bias the desired width (default=0.1)
      */
      */
     public void setBias(float bias) {
     public void setBias(float bias) {
         this.bias = bias;
         this.bias = bias;
@@ -227,7 +228,8 @@ public class SSAOFilter extends Filter {
 
 
     /**
     /**
      * Sets the Ambient occlusion intensity default is 1.2f
      * Sets the Ambient occlusion intensity default is 1.2f
-     * @param intensity 
+     *
+     * @param intensity the desired intensity (default=1.5)
      */
      */
     public void setIntensity(float intensity) {
     public void setIntensity(float intensity) {
         this.intensity = intensity;
         this.intensity = intensity;
@@ -247,8 +249,9 @@ public class SSAOFilter extends Filter {
     }
     }
 
 
     /**
     /**
-     * Sets the radius of the area where random samples will be picked default 5.1f     
-     * @param sampleRadius 
+     * Sets the radius of the area where random samples will be picked default 5.1f 
+     *
+     * @param sampleRadius the desired radius (default=5.1)
      */
      */
     public void setSampleRadius(float sampleRadius) {
     public void setSampleRadius(float sampleRadius) {
         this.sampleRadius = sampleRadius;
         this.sampleRadius = sampleRadius;
@@ -270,7 +273,8 @@ public class SSAOFilter extends Filter {
     /**
     /**
      * 
      * 
      * Returns the distance between occluders and occludee. default 0.2f
      * Returns the distance between occluders and occludee. default 0.2f
-     * @param scale 
+     *
+     * @param scale the desired distance (default=0.2)
      */
      */
     public void setScale(float scale) {
     public void setScale(float scale) {
         this.scale = scale;
         this.scale = scale;
@@ -289,6 +293,8 @@ public class SSAOFilter extends Filter {
 
 
     /**
     /**
      * debugging only , will be removed
      * debugging only , will be removed
+     *
+     * @param useAo true to enable, false to disable (default=true)
      */
      */
     public void setUseAo(boolean useAo) {
     public void setUseAo(boolean useAo) {
         this.useAo = useAo;
         this.useAo = useAo;
@@ -319,6 +325,8 @@ public class SSAOFilter extends Filter {
 
 
     /**
     /**
      * debugging only , will be removed
      * debugging only , will be removed
+     *
+     * @param useOnlyAo true to enable, false to disable (default=false)
      */
      */
     public void setUseOnlyAo(boolean useOnlyAo) {
     public void setUseOnlyAo(boolean useOnlyAo) {
         this.useOnlyAo = useOnlyAo;
         this.useOnlyAo = useOnlyAo;

+ 6 - 3
jme3-effects/src/main/java/com/jme3/water/ReflectionProcessor.java

@@ -125,7 +125,8 @@ public class ReflectionProcessor implements SceneProcessor {
     /**
     /**
      * Internal use only<br>
      * Internal use only<br>
      * sets the frame buffer
      * sets the frame buffer
-     * @param reflectionBuffer 
+     *
+     * @param reflectionBuffer the FrameBuffer to use (alias created)
      */
      */
     public void setReflectionBuffer(FrameBuffer reflectionBuffer) {
     public void setReflectionBuffer(FrameBuffer reflectionBuffer) {
         this.reflectionBuffer = reflectionBuffer;
         this.reflectionBuffer = reflectionBuffer;
@@ -141,7 +142,8 @@ public class ReflectionProcessor implements SceneProcessor {
 
 
     /**
     /**
      * sets the reflection cam
      * sets the reflection cam
-     * @param reflectionCam 
+     *
+     * @param reflectionCam the Camera to use (alias created)
      */
      */
     public void setReflectionCam(Camera reflectionCam) {
     public void setReflectionCam(Camera reflectionCam) {
         this.reflectionCam = reflectionCam;
         this.reflectionCam = reflectionCam;
@@ -157,7 +159,8 @@ public class ReflectionProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Sets the reflection clip plane
      * Sets the reflection clip plane
-     * @param reflectionClipPlane 
+     *
+     * @param reflectionClipPlane the Plane to use (alias created)
      */
      */
     public void setReflectionClipPlane(Plane reflectionClipPlane) {
     public void setReflectionClipPlane(Plane reflectionClipPlane) {
         this.reflectionClipPlane = reflectionClipPlane;
         this.reflectionClipPlane = reflectionClipPlane;

+ 33 - 14
jme3-effects/src/main/java/com/jme3/water/SimpleWaterProcessor.java

@@ -324,7 +324,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
     /**
     /**
      * Sets the reflected scene, should not include the water quad!
      * Sets the reflected scene, should not include the water quad!
      * Set before adding processor.
      * Set before adding processor.
-     * @param spat
+     *
+     * @param spat the scene-graph subtree to be reflected (alias created)
      */
      */
     public void setReflectionScene(Spatial spat) {
     public void setReflectionScene(Spatial spat) {
         reflectionScene = spat;
         reflectionScene = spat;
@@ -349,8 +350,9 @@ public class SimpleWaterProcessor implements SceneProcessor {
     /**
     /**
      * Set the reflection Texture render size,
      * Set the reflection Texture render size,
      * set before adding the processor!
      * set before adding the processor!
-     * @param width
-     * @param height
+     *
+     * @param width the desired width (in pixels, default=512)
+     * @param height the desired height (in pixels, default=512)
      */
      */
     public void setRenderSize(int width, int height) {
     public void setRenderSize(int width, int height) {
         renderWidth = width;
         renderWidth = width;
@@ -367,7 +369,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Set the water plane for this processor.
      * Set the water plane for this processor.
-     * @param plane
+     *
+     * @param plane the Plane to use (not null, unaffected)
      */
      */
     public void setPlane(Plane plane) {
     public void setPlane(Plane plane) {
         this.plane.setConstant(plane.getConstant());
         this.plane.setConstant(plane.getConstant());
@@ -395,7 +398,9 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Set the light Position for the processor
      * Set the light Position for the processor
-     * @param position
+     *
+     * @param position the desired location (in world coordinates,
+     * alias created)
      */
      */
     //TODO maybe we should provide a convenient method to compute position from direction
     //TODO maybe we should provide a convenient method to compute position from direction
     public void setLightPosition(Vector3f position) {
     public void setLightPosition(Vector3f position) {
@@ -404,7 +409,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Set the color that will be added to the refraction texture.
      * Set the color that will be added to the refraction texture.
-     * @param color
+     *
+     * @param color the desired color (alias created)
      */
      */
     public void setWaterColor(ColorRGBA color) {
     public void setWaterColor(ColorRGBA color) {
         material.setColor("waterColor", color);
         material.setColor("waterColor", color);
@@ -413,7 +419,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
     /**
     /**
      * Higher values make the refraction texture shine through earlier.
      * Higher values make the refraction texture shine through earlier.
      * Default is 4
      * Default is 4
-     * @param depth
+     *
+     * @param depth the desired depth (default=1)
      */
      */
     public void setWaterDepth(float depth) {
     public void setWaterDepth(float depth) {
         waterDepth = depth;
         waterDepth = depth;
@@ -438,7 +445,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * sets the water transparency default os 0.1f
      * sets the water transparency default os 0.1f
-     * @param waterTransparency
+     *
+     * @param waterTransparency the desired transparency (default=0.4)
      */
      */
     public void setWaterTransparency(float waterTransparency) {
     public void setWaterTransparency(float waterTransparency) {
         this.waterTransparency = Math.max(0, waterTransparency);
         this.waterTransparency = Math.max(0, waterTransparency);
@@ -447,7 +455,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Sets the speed of the wave animation, default = 0.05f.
      * Sets the speed of the wave animation, default = 0.05f.
-     * @param speed
+     *
+     * @param speed the desired animation speed (default=0.05)
      */
      */
     public void setWaveSpeed(float speed) {
     public void setWaveSpeed(float speed) {
         this.speed = speed;
         this.speed = speed;
@@ -463,6 +472,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
     
     
     /**
     /**
      * Sets the scale of distortion by the normal map, default = 0.2
      * Sets the scale of distortion by the normal map, default = 0.2
+     *
+     * @param value the desired scale factor (default=0.2)
      */
      */
     public void setDistortionScale(float value) {
     public void setDistortionScale(float value) {
         distortionScale  = value;
         distortionScale  = value;
@@ -471,6 +482,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Sets how the normal and dudv map are mixed to create the wave effect, default = 0.5
      * Sets how the normal and dudv map are mixed to create the wave effect, default = 0.5
+     *
+     * @param value the desired mix fraction (default=0.5)
      */
      */
     public void setDistortionMix(float value) {
     public void setDistortionMix(float value) {
         distortionMix = value;
         distortionMix = value;
@@ -481,6 +494,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
      * Sets the scale of the normal/dudv texture, default = 1.
      * Sets the scale of the normal/dudv texture, default = 1.
      * Note that the waves should be scaled by the texture coordinates of the quad to avoid animation artifacts,
      * Note that the waves should be scaled by the texture coordinates of the quad to avoid animation artifacts,
      * use mesh.scaleTextureCoordinates(Vector2f) for that.
      * use mesh.scaleTextureCoordinates(Vector2f) for that.
+     *
+     * @param value the desired scale factor (default=1)
      */
      */
     public void setTexScale(float value) {
     public void setTexScale(float value) {
         texScale = value;
         texScale = value;
@@ -528,7 +543,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * set to true to display reflection and refraction textures in the GUI for debug purpose
      * set to true to display reflection and refraction textures in the GUI for debug purpose
-     * @param debug
+     *
+     * @param debug true to enable display, false to disable it (default=false)
      */
      */
     public void setDebug(boolean debug) {
     public void setDebug(boolean debug) {
         this.debug = debug;
         this.debug = debug;
@@ -536,8 +552,9 @@ public class SimpleWaterProcessor implements SceneProcessor {
 
 
     /**
     /**
      * Creates a quad with the water material applied to it.
      * Creates a quad with the water material applied to it.
-     * @param width
-     * @param height
+     *
+     * @param width the desired width (in mesh coordinates)
+     * @param height the desired height (in mesh coordinates)
      * @return a new Geometry
      * @return a new Geometry
      */
      */
     public Geometry createWaterGeometry(float width, float height) {
     public Geometry createWaterGeometry(float width, float height) {
@@ -559,7 +576,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
     /**
     /**
      * sets the reflection clipping plane offset
      * sets the reflection clipping plane offset
      * set a nagetive value to lower the clipping plane for relection texture rendering.
      * set a nagetive value to lower the clipping plane for relection texture rendering.
-     * @param reflectionClippingOffset
+     *
+     * @param reflectionClippingOffset the desired offset (default=-5)
      */
      */
     public void setReflectionClippingOffset(float reflectionClippingOffset) {
     public void setReflectionClippingOffset(float reflectionClippingOffset) {
         this.reflectionClippingOffset = reflectionClippingOffset;
         this.reflectionClippingOffset = reflectionClippingOffset;
@@ -577,7 +595,8 @@ public class SimpleWaterProcessor implements SceneProcessor {
     /**
     /**
      * Sets the refraction clipping plane offset
      * Sets the refraction clipping plane offset
      * set a positive value to raise the clipping plane for refraction texture rendering
      * set a positive value to raise the clipping plane for refraction texture rendering
-     * @param refractionClippingOffset
+     *
+     * @param refractionClippingOffset the desired offset (default=0.3)
      */
      */
     public void setRefractionClippingOffset(float refractionClippingOffset) {
     public void setRefractionClippingOffset(float refractionClippingOffset) {
         this.refractionClippingOffset = refractionClippingOffset;
         this.refractionClippingOffset = refractionClippingOffset;

+ 72 - 31
jme3-effects/src/main/java/com/jme3/water/WaterFilter.java

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2009-2019 jMonkeyEngine
+ * Copyright (c) 2009-2021 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
  *
  *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
@@ -473,7 +473,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the height of the water plane
      * Sets the height of the water plane
      * default is 0.0
      * default is 0.0
-     * @param waterHeight
+     *
+     * @param waterHeight the desired height (default=0)
      */
      */
     public void setWaterHeight(float waterHeight) {
     public void setWaterHeight(float waterHeight) {
         this.waterHeight = waterHeight;
         this.waterHeight = waterHeight;
@@ -528,7 +529,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * values as how clear water is. Therefore use smaller values (eg. 0.05)
      * values as how clear water is. Therefore use smaller values (eg. 0.05)
      * to have crystal clear water and bigger to achieve "muddy" water.
      * to have crystal clear water and bigger to achieve "muddy" water.
      * default is 0.1f
      * default is 0.1f
-     * @param waterTransparency
+     *
+     * @param waterTransparency the desired muddiness (default=0.1)
      */
      */
     public void setWaterTransparency(float waterTransparency) {
     public void setWaterTransparency(float waterTransparency) {
         this.waterTransparency = waterTransparency;
         this.waterTransparency = waterTransparency;
@@ -549,7 +551,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * Sets the normal scaling factors to apply to the normal map.
      * Sets the normal scaling factors to apply to the normal map.
      * the higher the value the more small ripples will be visible on the waves.
      * the higher the value the more small ripples will be visible on the waves.
      * default is 1.0
      * default is 1.0
-     * @param normalScale
+     *
+     * @param normalScale the scaling factor (default=3)
      */
      */
     public void setNormalScale(float normalScale) {
     public void setNormalScale(float normalScale) {
         this.normalScale = normalScale;
         this.normalScale = normalScale;
@@ -573,7 +576,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * It usually depend on the material you are looking through (here water).
      * It usually depend on the material you are looking through (here water).
      * Default value is 0.3f
      * Default value is 0.3f
      * In practice, the lowest the value and the less the reflection can be seen on water
      * In practice, the lowest the value and the less the reflection can be seen on water
-     * @param refractionConstant
+     *
+     * @param refractionConstant the desired R0 value (default=0.5)
      */
      */
     public void setRefractionConstant(float refractionConstant) {
     public void setRefractionConstant(float refractionConstant) {
         this.refractionConstant = refractionConstant;
         this.refractionConstant = refractionConstant;
@@ -593,7 +597,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the maximum waves amplitude
      * Sets the maximum waves amplitude
      * default is 1.0
      * default is 1.0
-     * @param maxAmplitude
+     *
+     * @param maxAmplitude the desired maximum amplitude (default=1.5)
      */
      */
     public void setMaxAmplitude(float maxAmplitude) {
     public void setMaxAmplitude(float maxAmplitude) {
         this.maxAmplitude = maxAmplitude;
         this.maxAmplitude = maxAmplitude;
@@ -612,7 +617,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * Sets the light direction
      * Sets the light direction
-     * @param lightDirection
+     *
+     * @param lightDirection the direction vector to use (alias created,
+     * default=(0,-1,0))
      */
      */
     public void setLightDirection(Vector3f lightDirection) {
     public void setLightDirection(Vector3f lightDirection) {
         this.lightDirection = lightDirection;
         this.lightDirection = lightDirection;
@@ -632,7 +639,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the light color to use
      * Sets the light color to use
      * default is white
      * default is white
-     * @param lightColor
+     *
+     * @param lightColor the color to use (alias created, default=(1,1,1,1))
      */
      */
     public void setLightColor(ColorRGBA lightColor) {
     public void setLightColor(ColorRGBA lightColor) {
         this.lightColor = lightColor;
         this.lightColor = lightColor;
@@ -653,7 +661,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * The smaller this value is, the softer the transition between
      * The smaller this value is, the softer the transition between
      * shore and water. If you want hard edges use very big value.
      * shore and water. If you want hard edges use very big value.
      * Default is 0.1f.
      * Default is 0.1f.
-     * @param shoreHardness
+     *
+     * @param shoreHardness the desired hardness (default=0.1)
      */
      */
     public void setShoreHardness(float shoreHardness) {
     public void setShoreHardness(float shoreHardness) {
         this.shoreHardness = shoreHardness;
         this.shoreHardness = shoreHardness;
@@ -673,7 +682,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the foam hardness : How much the foam will blend with the shore to avoid hard edged water plane.
      * Sets the foam hardness : How much the foam will blend with the shore to avoid hard edged water plane.
      * Default is 1.0
      * Default is 1.0
-     * @param foamHardness
+     *
+     * @param foamHardness the desired hardness (default=1)
      */
      */
     public void setFoamHardness(float foamHardness) {
     public void setFoamHardness(float foamHardness) {
         this.foamHardness = foamHardness;
         this.foamHardness = foamHardness;
@@ -694,7 +704,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * This value modifies current fresnel term. If you want to weaken
      * This value modifies current fresnel term. If you want to weaken
      * reflections use bigger value. If you want to emphasize them use
      * reflections use bigger value. If you want to emphasize them use
      * value smaller then 0. Default is 0.0f.
      * value smaller then 0. Default is 0.0f.
-     * @param refractionStrength
+     *
+     * @param refractionStrength the desired strength (default=0)
      */
      */
     public void setRefractionStrength(float refractionStrength) {
     public void setRefractionStrength(float refractionStrength) {
         this.refractionStrength = refractionStrength;
         this.refractionStrength = refractionStrength;
@@ -715,7 +726,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * Sets the scale factor of the waves height map
      * Sets the scale factor of the waves height map
      * the smaller the value the bigger the waves
      * the smaller the value the bigger the waves
      * default is 0.005f
      * default is 0.005f
-     * @param waveScale
+     *
+     * @param waveScale the desired scale factor (default=0.005)
      */
      */
     public void setWaveScale(float waveScale) {
     public void setWaveScale(float waveScale) {
         this.waveScale = waveScale;
         this.waveScale = waveScale;
@@ -737,7 +749,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * at what it is completely invisible. The third value is at
      * at what it is completely invisible. The third value is at
      * what height foam for waves appear (+ waterHeight).
      * what height foam for waves appear (+ waterHeight).
      * default is (0.45, 4.35, 1.0);
      * default is (0.45, 4.35, 1.0);
-     * @param foamExistence
+     *
+     * @param foamExistence the desired parameters (alias created)
      */
      */
     public void setFoamExistence(Vector3f foamExistence) {
     public void setFoamExistence(Vector3f foamExistence) {
         this.foamExistence = foamExistence;
         this.foamExistence = foamExistence;
@@ -756,7 +769,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * Sets the scale of the sun for specular effect
      * Sets the scale of the sun for specular effect
-     * @param sunScale
+     *
+     * @param sunScale the desired scale factor (default=3)
      */
      */
     public void setSunScale(float sunScale) {
     public void setSunScale(float sunScale) {
         this.sunScale = sunScale;
         this.sunScale = sunScale;
@@ -780,7 +794,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * the third is for blue
      * the third is for blue
      * Play with those parameters to "trouble" the water
      * Play with those parameters to "trouble" the water
      * default is (5.0, 20.0, 30.0f);
      * default is (5.0, 20.0, 30.0f);
-     * @param colorExtinction
+     *
+     * @param colorExtinction the desired depth for each color component (alias
+     * created, default=(5,20,30))
      */
      */
     public void setColorExtinction(Vector3f colorExtinction) {
     public void setColorExtinction(Vector3f colorExtinction) {
         this.colorExtinction = colorExtinction;
         this.colorExtinction = colorExtinction;
@@ -814,7 +830,7 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the height texture
      * Sets the height texture
      *
      *
-     * @param heightTexture
+     * @param heightTexture the texture to use (alias created)
      */
      */
     public void setHeightTexture(Texture2D heightTexture) {
     public void setHeightTexture(Texture2D heightTexture) {
         this.heightTexture = heightTexture;
         this.heightTexture = heightTexture;
@@ -866,7 +882,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the shininess factor of the water
      * Sets the shininess factor of the water
      * default is 0.7f
      * default is 0.7f
-     * @param shininess
+     *
+     * @param shininess the desired factor (default=0.7)
      */
      */
     public void setShininess(float shininess) {
     public void setShininess(float shininess) {
         this.shininess = shininess;
         this.shininess = shininess;
@@ -885,7 +902,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * Set the speed of the waves (0.0 is still) default is 1.0
      * Set the speed of the waves (0.0 is still) default is 1.0
-     * @param speed
+     *
+     * @param speed the desired speedup factor (default=1)
      */
      */
     public void setSpeed(float speed) {
     public void setSpeed(float speed) {
         this.speed = speed;
         this.speed = speed;
@@ -904,7 +922,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * Sets the color of the water
      * Sets the color of the water
      * see setDeepWaterColor for deep water color
      * see setDeepWaterColor for deep water color
      * default is (0.0078f, 0.5176f, 0.5f,1.0f) (greenish blue)
      * default is (0.0078f, 0.5176f, 0.5f,1.0f) (greenish blue)
-     * @param waterColor
+     *
+     * @param waterColor the color to use (alias created,
+     * default=(0.0078,0.3176,0.5,1))
      */
      */
     public void setWaterColor(ColorRGBA waterColor) {
     public void setWaterColor(ColorRGBA waterColor) {
         this.waterColor = waterColor;
         this.waterColor = waterColor;
@@ -925,7 +945,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * sets the deep water color
      * sets the deep water color
      * see setWaterColor for general color
      * see setWaterColor for general color
      * default is (0.0039f, 0.00196f, 0.145f,1.0f) (very dark blue)
      * default is (0.0039f, 0.00196f, 0.145f,1.0f) (very dark blue)
-     * @param deepWaterColor
+     *
+     * @param deepWaterColor the color to use (alias created,
+     * default=(0.0039,0.00196,0.145,1))
      */
      */
     public void setDeepWaterColor(ColorRGBA deepWaterColor) {
     public void setDeepWaterColor(ColorRGBA deepWaterColor) {
         this.deepWaterColor = deepWaterColor;
         this.deepWaterColor = deepWaterColor;
@@ -946,7 +968,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
      * sets the wind direction
      * sets the wind direction
      * the direction where the waves move
      * the direction where the waves move
      * default is (0.0f, -1.0f)
      * default is (0.0f, -1.0f)
-     * @param windDirection
+     *
+     * @param windDirection the direction vector to use (alias created,
+     * default=(0,-1))
      */
      */
     public void setWindDirection(Vector2f windDirection) {
     public void setWindDirection(Vector2f windDirection) {
         this.windDirection = windDirection;
         this.windDirection = windDirection;
@@ -966,7 +990,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * Sets the size of the reflection map
      * Sets the size of the reflection map
      * default is 512, the higher, the better quality, but the slower the effect.
      * default is 512, the higher, the better quality, but the slower the effect.
-     * @param reflectionMapSize
+     *
+     * @param reflectionMapSize the desired size (in pixels per side,
+     * default=512)
      */
      */
     public void setReflectionMapSize(int reflectionMapSize) {
     public void setReflectionMapSize(int reflectionMapSize) {
         this.reflectionMapSize = reflectionMapSize;
         this.reflectionMapSize = reflectionMapSize;
@@ -991,7 +1017,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * set to true to use foam with water
      * set to true to use foam with water
      * default true
      * default true
-     * @param useFoam
+     *
+     * @param useFoam true for foam, false for no foam (default=true)
      */
      */
     public void setUseFoam(boolean useFoam) {
     public void setUseFoam(boolean useFoam) {
         this.useFoam = useFoam;
         this.useFoam = useFoam;
@@ -1032,7 +1059,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * set to true if you want caustics to be rendered on the ground underwater, false otherwise
      * set to true if you want caustics to be rendered on the ground underwater, false otherwise
-     * @param useCaustics 
+     *
+     * @param useCaustics true to enable rendering fo caustics, false to disable
+     * it (default=true)
      */
      */
     public void setUseCaustics(boolean useCaustics) {
     public void setUseCaustics(boolean useCaustics) {
         this.useCaustics = useCaustics;
         this.useCaustics = useCaustics;
@@ -1067,7 +1096,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * set to true to use refraction (default is true)
      * set to true to use refraction (default is true)
-     * @param useRefraction 
+     *
+     * @param useRefraction true to enable refraction, false to disable it
+     * (default=true)
      */
      */
     public void setUseRefraction(boolean useRefraction) {
     public void setUseRefraction(boolean useRefraction) {
         this.useRefraction = useRefraction;
         this.useRefraction = useRefraction;
@@ -1088,7 +1119,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * 
      * 
      * Set to true to use ripples
      * Set to true to use ripples
-     * @param useRipples 
+     *
+     * @param useRipples true to enable ripples, false to disable them
+     * (default=true)
      */
      */
     public void setUseRipples(boolean useRipples) {
     public void setUseRipples(boolean useRipples) {
         this.useRipples = useRipples;
         this.useRipples = useRipples;
@@ -1108,7 +1141,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * Set to true to use specular lightings on the water
      * Set to true to use specular lightings on the water
-     * @param useSpecular 
+     *
+     * @param useSpecular true to enable the specular effect, false to disable
+     * it (default=true)
      */
      */
     public void setUseSpecular(boolean useSpecular) {
     public void setUseSpecular(boolean useSpecular) {
         this.useSpecular = useSpecular;
         this.useSpecular = useSpecular;
@@ -1127,7 +1162,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * sets the foam intensity default is 0.5f
      * sets the foam intensity default is 0.5f
-     * @param foamIntensity 
+     *
+     * @param foamIntensity the desired intensity (default=0.5)
      */
      */
     public void setFoamIntensity(float foamIntensity) {
     public void setFoamIntensity(float foamIntensity) {
         this.foamIntensity = foamIntensity;
         this.foamIntensity = foamIntensity;
@@ -1148,7 +1184,8 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * Sets the reflection displace. define how troubled will look the reflection in the water. default is 30
      * Sets the reflection displace. define how troubled will look the reflection in the water. default is 30
-     * @param reflectionDisplace 
+     *
+     * @param reflectionDisplace the desired displacement (default=30)
      */
      */
     public void setReflectionDisplace(float reflectionDisplace) {
     public void setReflectionDisplace(float reflectionDisplace) {
         this.reflectionDisplace = reflectionDisplace;
         this.reflectionDisplace = reflectionDisplace;
@@ -1176,7 +1213,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
     /**
     /**
      * sets the distance of the fog when under water.
      * sets the distance of the fog when under water.
      * default is 120 (120 world units) use a high value to raise the view range under water
      * default is 120 (120 world units) use a high value to raise the view range under water
-     * @param underWaterFogDistance 
+     *
+     * @param underWaterFogDistance the desired distance (in world units,
+     * default=120)
      */
      */
     public void setUnderWaterFogDistance(float underWaterFogDistance) {
     public void setUnderWaterFogDistance(float underWaterFogDistance) {
         this.underWaterFogDistance = underWaterFogDistance;
         this.underWaterFogDistance = underWaterFogDistance;
@@ -1195,7 +1234,9 @@ public class WaterFilter extends Filter implements JmeCloneable, Cloneable {
 
 
     /**
     /**
      * sets the intensity of caustics under water. goes from 0 to 1, default is 0.5f
      * sets the intensity of caustics under water. goes from 0 to 1, default is 0.5f
-     * @param causticsIntensity 
+     *
+     * @param causticsIntensity the desired intensity (&ge;0, &le;1,
+     * default=0.5)
      */
      */
     public void setCausticsIntensity(float causticsIntensity) {
     public void setCausticsIntensity(float causticsIntensity) {
         this.causticsIntensity = causticsIntensity;
         this.causticsIntensity = causticsIntensity;