postprocessing - v7.0.0-beta.16
    Preparing search index...

    Class SMAAEdgeDetectionMaterial

    An SMAA edge detection material.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get edgeDetectionThreshold(): number

      The edge detection threshold. Range: [0.0, 0.5].

      A lower value results in more edges being detected at the expense of performance.

      For luma- and chroma-based edge detection, 0.1 is a reasonable value and allows to catch most visible edges. 0.05 is a rather overkill value that allows to catch 'em all. Darker scenes may require an even lower threshold.

      If depth-based edge detection is used, the threshold must be adjusted to match the scene depth distribution.

      Returns number

      0.05
      
    • set edgeDetectionThreshold(value: number): void

      Parameters

      • value: number

      Returns void

    • get localContrastAdaptationFactor(): number

      The local contrast adaptation factor. Has no effect if the edge detection mode is set to DEPTH.

      If a neighbor edge has factor times bigger contrast than the current edge, the edge will be discarded.

      This allows to eliminate spurious crossing edges and is based on the fact that if there is too much contrast in a direction, the perceptual contrast in the other neighbors will be hidden.

      Returns number

      2
      
    • set localContrastAdaptationFactor(value: number): void

      Parameters

      • value: number

      Returns void

    Methods