Class SoFXAAParameters


public class SoFXAAParameters extends SoAntialiasingParameters
Antialiasing parameters class for the FXAA algorithm. This class provides the different parameters that can be set to configure the FXAA antialiasing algorithm. These objects are used with the setAntialiasing() method in SoSceneManager and some viewer classes (e.g.
invalid reference
SoWinGLWidget
).

See Also:
  • Constructor Details

    • SoFXAAParameters

      public SoFXAAParameters(int qualityPreset, float subPixQuality, float edgeThresholdQuality, float edgeThresholdMin)
      Constructor which takes a value for each possible parameter.

      Parameters:
      qualityPreset - Quality value in the range [10;15] , [20;29] or equal to 39.

      subPixQuality - Chooses the amount of sub-pixel aliasing removal (1.0 upper limit = softer, 0.0 = off).

      edgeThresholdQuality - The minimum amount of local contrast required to apply algorithm (0.333 = too little but faster, 0.063 = overkill and slower).

      edgeThresholdMin - Trims the algorithm from processing darks (0.0833 = upper limit the start of visible unfiltered edges, 0.0625 = high quality and faster, 0.0312 = visible limit but slower).
  • Method Details

    • getSubPixQuality

      public float getSubPixQuality()
      Returns the subPixQuality parameter.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getQualityPreset

      public int getQualityPreset()
      Returns the quality preset.
    • getEdgeThresholdMin

      public float getEdgeThresholdMin()
      Returns the edgeThresholdMinimum parameter.
    • getEdgeThresholdQuality

      public float getEdgeThresholdQuality()
      Returns the edgeThresholdQuality parameter.