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

Public Member Functions

 MotionBlurSettings ()
 
 MotionBlurSettings (const Any &)
 
bool enabled () const
 
float exposureFraction () const
 Fraction of the frame interval during which the shutter is open. More...
 
void extendGBufferSpecification (GBuffer::Specification &spec) const
 
float maxBlurDiameterFraction () const
 Objects are blurred over at most this distance as a fraction of the screen dimension along the dominant field of view axis. More...
 
int numSamples () const
 Number of samples taken per pixel when computing motion blur. More...
 
void setEnabled (bool e)
 
void setExposureFraction (float f)
 
void setMaxBlurDiameterFraction (float f)
 
void setNumSamples (int n)
 
Any toAny () const
 

Detailed Description

See also
Camera, MotionBlur, DepthOfFieldSettings

Constructor & Destructor Documentation

◆ MotionBlurSettings() [1/2]

G3D::MotionBlurSettings::MotionBlurSettings ( )

◆ MotionBlurSettings() [2/2]

G3D::MotionBlurSettings::MotionBlurSettings ( const Any )

Member Function Documentation

◆ enabled()

bool G3D::MotionBlurSettings::enabled ( ) const
inline

◆ exposureFraction()

float G3D::MotionBlurSettings::exposureFraction ( ) const
inline

Fraction of the frame interval during which the shutter is open.

Default is 0.75 (75%). Larger values create more motion blur, smaller values create less blur.

◆ extendGBufferSpecification()

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

◆ maxBlurDiameterFraction()

float G3D::MotionBlurSettings::maxBlurDiameterFraction ( ) const
inline

Objects are blurred over at most this distance as a fraction of the screen dimension along the dominant field of view axis.

Default is 0.10 (10%).

◆ numSamples()

int G3D::MotionBlurSettings::numSamples ( ) const
inline

Number of samples taken per pixel when computing motion blur.

Larger numbers are slower. The actual number of samples used by the current implementation must be odd, so this is always rounded to the odd number greater than or equal to it.

Default = 11.

◆ setEnabled()

void G3D::MotionBlurSettings::setEnabled ( bool  e)
inline

◆ setExposureFraction()

void G3D::MotionBlurSettings::setExposureFraction ( float  f)
inline

◆ setMaxBlurDiameterFraction()

void G3D::MotionBlurSettings::setMaxBlurDiameterFraction ( float  f)
inline

◆ setNumSamples()

void G3D::MotionBlurSettings::setNumSamples ( int  n)
inline

◆ toAny()

Any G3D::MotionBlurSettings::toAny ( ) const

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