Constructs a new SMAA edge detection material.
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.
ProtectedfarThe current camera far plane value.
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.
ProtectednearThe current camera near plane value.
The predication buffer.
If this buffer uses high precision, the macro PREDICATIONBUFFER_PRECISION_HIGH will be defined.
The predication mode.
Predicated thresholding allows to better preserve texture details and to improve edge detection using an additional buffer such as a light accumulation or depth buffer.
Copies the settings of the given camera.
Updates the camera-related uniforms and macros.
A camera.
Updates the resolution uniform (XY = resolution, ZW = texelSize).
The width.
The height.
An SMAA edge detection material.