LightsprintSDK 2021.08.08
rr_gl::PluginParamsDOF Class Reference

#include <PluginDOF.h>

Inheritance diagram for rr_gl::PluginParamsDOF:
rr_gl::PluginParams

Public Member Functions

 PluginParamsDOF (const PluginParams *_next, bool _accumulated, const rr::RRString &_apertureShapeFilename)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

bool accumulated
 
rr::RRString apertureShapeFilename
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Adds depth of field effect, using current camera settings (camera is passed to renderer via PluginParamsShared).

Constructor & Destructor Documentation

◆ PluginParamsDOF()

rr_gl::PluginParamsDOF::PluginParamsDOF ( const PluginParams _next,
bool  _accumulated,
const rr::RRString _apertureShapeFilename 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

virtual PluginRuntime * rr_gl::PluginParamsDOF::createRuntime ( const PluginCreateRuntimeParams params) const
virtual

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ accumulated

bool rr_gl::PluginParamsDOF::accumulated

True = physically based DOF, requires PluginAccumulation later in plugin chain. False = faster DOF approximation

◆ apertureShapeFilename

rr::RRString rr_gl::PluginParamsDOF::apertureShapeFilename

Filename of texture with aperture/bokeh shape. Only used if accumulated==true.