LightsprintSDK 2021.08.08
rr_gl::PluginParamsLensFlare Class Reference

#include <PluginLensFlare.h>

Inheritance diagram for rr_gl::PluginParamsLensFlare:
rr_gl::PluginParams

Public Member Functions

 PluginParamsLensFlare (const PluginParams *_next, float _flareSize, unsigned _flareId, const rr::RRSolver *_solver, unsigned _quality)
 
 PluginParamsLensFlare (const PluginParams *_next, float _flareSize, unsigned _flareId, const rr::RRLights *_lights, const rr::RRCollider *_collider, const rr::RRObject *_scene, unsigned _quality)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

float flareSize
 
unsigned flareId
 
const rr::RRLightslights
 
const rr::RRCollidercollider
 
const rr::RRObjectscene
 
unsigned quality
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Adds lens flare effect.

Constructor & Destructor Documentation

◆ PluginParamsLensFlare() [1/2]

rr_gl::PluginParamsLensFlare::PluginParamsLensFlare ( const PluginParams _next,
float  _flareSize,
unsigned  _flareId,
const rr::RRSolver _solver,
unsigned  _quality 
)
inline

Convenience ctor, for setting plugin parameters.

◆ PluginParamsLensFlare() [2/2]

rr_gl::PluginParamsLensFlare::PluginParamsLensFlare ( const PluginParams _next,
float  _flareSize,
unsigned  _flareId,
const rr::RRLights _lights,
const rr::RRCollider _collider,
const rr::RRObject _scene,
unsigned  _quality 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

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

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ flareSize

float rr_gl::PluginParamsLensFlare::flareSize

Relative size of flare, 1 for typical size.

◆ flareId

unsigned rr_gl::PluginParamsLensFlare::flareId

Various flare parameters are generated from this number.

◆ lights

const rr::RRLights* rr_gl::PluginParamsLensFlare::lights

Collection of lights in scene.

◆ collider

const rr::RRCollider* rr_gl::PluginParamsLensFlare::collider

Collider used for occlusion testing.

◆ scene

const rr::RRObject* rr_gl::PluginParamsLensFlare::scene

Object with all scene geometry, used for occlusion testing.

◆ quality

unsigned rr_gl::PluginParamsLensFlare::quality

Number of rays shot. Higher quality makes effect of gradual occlusion smoother.