Support Forum G3D Web Page |
Public Member Functions | |
BilateralFilterSettings () | |
void | extendGBufferSpecification (GBuffer::Specification &spec) const |
Ensures the GBuffer specification has all the fields needed to render this effect More... | |
void | makeGUI (GuiPane *pane) |
Public Attributes | |
float | computeFraction = -1.0f |
If greater than zero, inscribe a disk in the maximum of the width and height and framebuffer and only compute the output within that disk. More... | |
float | depthWeight |
How much depth difference is taken into account. More... | |
float | glossyWeight |
How much glossy exponent is taken into account. More... | |
bool | monotonicallyDecreasingBilateralWeights |
If true, ensure that the "bilateral" weights are monotonically decreasing moving away from the current pixel. More... | |
float | normalWeight |
How much normal difference is taken into account. More... | |
float | planeWeight |
How much plane difference is taken into account. More... | |
int | radius |
Filter radius in pixels. More... | |
int | stepSize |
Default is to step in 2-pixel intervals. More... | |
G3D::BilateralFilterSettings::BilateralFilterSettings | ( | ) |
void G3D::BilateralFilterSettings::extendGBufferSpecification | ( | GBuffer::Specification & | spec | ) | const |
Ensures the GBuffer specification has all the fields needed to render this effect
void G3D::BilateralFilterSettings::makeGUI | ( | GuiPane * | pane | ) |
float G3D::BilateralFilterSettings::computeFraction = -1.0f |
If greater than zero, inscribe a disk in the maximum of the width and height and framebuffer and only compute the output within that disk.
Used for VR.
float G3D::BilateralFilterSettings::depthWeight |
How much depth difference is taken into account.
Default is 1.
float G3D::BilateralFilterSettings::glossyWeight |
How much glossy exponent is taken into account.
Default is 1.
bool G3D::BilateralFilterSettings::monotonicallyDecreasingBilateralWeights |
If true, ensure that the "bilateral" weights are monotonically decreasing moving away from the current pixel.
Default is true.
float G3D::BilateralFilterSettings::normalWeight |
How much normal difference is taken into account.
Default is 1.
float G3D::BilateralFilterSettings::planeWeight |
How much plane difference is taken into account.
Default is 1.
int G3D::BilateralFilterSettings::radius |
Filter radius in pixels.
This will be multiplied by stepSize. Each 1D filter will have 2*radius + 1 taps. If set to 0, the filter is turned off.
int G3D::BilateralFilterSettings::stepSize |
Default is to step in 2-pixel intervals.
This constant can be increased while radius decreases to improve performance at the expense of some dithering artifacts.
Must be at least 1.