LightsprintSDK 2021.08.08
rr_gl::PluginParamsSSGI Class Reference

#include <PluginSSGI.h>

Inheritance diagram for rr_gl::PluginParamsSSGI:
rr_gl::PluginParams

Public Member Functions

 PluginParamsSSGI (const PluginParams *_next, float _intensity, float _radius, float _angleBias)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

float intensity
 
float radius
 
float angleBias
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Adds screen space global illumination effect on top of scene render (next plugin).

SSGI simulates single short distance light bounce, with color bleeding.
It can be used with Fireball or Architect realtime GI solvers to improve realtime GI quality (GI solvers contribute low frequency GI, SSGI adds high frequencies).
It can be used with constant ambient to add at least some GI effects to non-GI render.
It is a realtime alternative to baked LDM.

on
off

Constructor & Destructor Documentation

◆ PluginParamsSSGI()

rr_gl::PluginParamsSSGI::PluginParamsSSGI ( const PluginParams _next,
float  _intensity,
float  _radius,
float  _angleBias 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

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

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ intensity

float rr_gl::PluginParamsSSGI::intensity

Intensity of SSGI effect, 1 for default.

◆ radius

float rr_gl::PluginParamsSSGI::radius

Radius (in meters) of SSGI effect.

◆ angleBias

float rr_gl::PluginParamsSSGI::angleBias

With angleBias 0, SSGI makes all edges visible. Increase to make only sharper edges visible. 0.1 is reasonable default.