LightsprintSDK 2021.08.08
rr_gl::PluginParamsToneMappingAdjustment Class Reference

#include <PluginToneMappingAdjustment.h>

Inheritance diagram for rr_gl::PluginParamsToneMappingAdjustment:
rr_gl::PluginParams

Public Member Functions

 PluginParamsToneMappingAdjustment (const PluginParams *_next, rr::RRVec3 &_brightness, rr::RRReal _secondsSinceLastAdjustment, rr::RRReal _targetIntensity)
 
virtual PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const
 
virtual class PluginRuntimecreateRuntime (const PluginCreateRuntimeParams &params) const =0
 

Public Attributes

rr::RRVec3brightness
 
rr::RRReal secondsSinceLastAdjustment
 
rr::RRReal targetIntensity
 
- Public Attributes inherited from rr_gl::PluginParams
const PluginParamsnext
 

Detailed Description

Automatically adjusts tone mapping operator (brightness parameter) to simulate eye response in time.

Only brightness parameter is adjusted here, image in render target does not change, it's your responsibility to pass brightness to renderer in next frame to achieve visible effect.

Constructor & Destructor Documentation

◆ PluginParamsToneMappingAdjustment()

rr_gl::PluginParamsToneMappingAdjustment::PluginParamsToneMappingAdjustment ( const PluginParams _next,
rr::RRVec3 _brightness,
rr::RRReal  _secondsSinceLastAdjustment,
rr::RRReal  _targetIntensity 
)
inline

Convenience ctor, for setting plugin parameters.

Member Function Documentation

◆ createRuntime()

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

Access to actual plugin code, called by Renderer.

Implements rr_gl::PluginParams.

Member Data Documentation

◆ brightness

rr::RRVec3& rr_gl::PluginParamsToneMappingAdjustment::brightness

Specified 'multiply screen by brightness' operator that will be adjusted.

◆ secondsSinceLastAdjustment

rr::RRReal rr_gl::PluginParamsToneMappingAdjustment::secondsSinceLastAdjustment

Number of seconds since last call to this function.

◆ targetIntensity

rr::RRReal rr_gl::PluginParamsToneMappingAdjustment::targetIntensity

Average pixel intensity we want to see after tone mapping, in 0..1 range, e.g. 0.5.