Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::BilateralFilterSettings Class Reference

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...
 

Constructor & Destructor Documentation

◆ BilateralFilterSettings()

G3D::BilateralFilterSettings::BilateralFilterSettings ( )

Member Function Documentation

◆ extendGBufferSpecification()

void G3D::BilateralFilterSettings::extendGBufferSpecification ( GBuffer::Specification spec) const


Ensures the GBuffer specification has all the fields needed to render this effect

See also
GApp::extendGBufferSpecification

◆ makeGUI()

void G3D::BilateralFilterSettings::makeGUI ( GuiPane pane)

Member Data Documentation

◆ computeFraction

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.

◆ depthWeight

float G3D::BilateralFilterSettings::depthWeight

How much depth difference is taken into account.

Default is 1.

◆ glossyWeight

float G3D::BilateralFilterSettings::glossyWeight


How much glossy exponent is taken into account.

Default is 1.

◆ monotonicallyDecreasingBilateralWeights

bool G3D::BilateralFilterSettings::monotonicallyDecreasingBilateralWeights

If true, ensure that the "bilateral" weights are monotonically decreasing moving away from the current pixel.

Default is true.

◆ normalWeight

float G3D::BilateralFilterSettings::normalWeight

How much normal difference is taken into account.

Default is 1.

◆ planeWeight

float G3D::BilateralFilterSettings::planeWeight

How much plane difference is taken into account.

Default is 1.

◆ radius

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.

◆ stepSize

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.


documentation generated on Wed Nov 24 2021 08:01:53 using doxygen 1.8.15