R2 Core Shaders

Data Fields
R2_fxaa_t Struct Reference

FXAA parameters. More...

`#include <R2FXAA.h>`

## Data Fields
sampler2D | image
| Input color texture.
vec2 | screen_inverse
| The inverse width/height of the viewport.
float | subpixel_aliasing_removal
float | edge_threshold
float | edge_threshold_minimum

## Detailed Description

FXAA parameters.

Definition at line 9 of file R2FXAA.h.

## Field Documentation

## § edge_threshold

float R2_fxaa_t::edge_threshold

The minimum amount of local contrast required to apply the algorithm. The range of useful values is `[0.063, 0.333]`, where: `0.333` - too little (faster) `0.250` - low quality `0.166` - default `0.125` - high quality `0.063` - overkill (slower)

Definition at line 33 of file R2FXAA.h.

## § edge_threshold_minimum

float R2_fxaa_t::edge_threshold_minimum

Trims the algorithm from processing darks. The range of useful values is `[0.0312, 0.0833]`, where: `0.0833` - upper limit (default, the start of visible unfiltered edges) `0.0625` - high quality (faster) `0.0312` - visible limit (slower)

Definition at line 40 of file R2FXAA.h.

## § subpixel_aliasing_removal

float R2_fxaa_t::subpixel_aliasing_removal

The amount of subpixel aliasing removal. The range of useful values is `[0.0, 1.0]`, where: `1.00` - upper limit (softer) `0.75` - default amount of filtering `0.50` - lower limit (sharper, less sub-pixel aliasing removal) `0.25` - almost off `0.00` - completely off

Definition at line 24 of file R2FXAA.h.

The documentation for this struct was generated from the following file:

- R2FXAA.h