LightsprintSDK 2021.08.08
|
#include <PluginToneMappingAdjustment.h>
Public Member Functions | |
PluginParamsToneMappingAdjustment (const PluginParams *_next, rr::RRVec3 &_brightness, rr::RRReal _secondsSinceLastAdjustment, rr::RRReal _targetIntensity) | |
virtual PluginRuntime * | createRuntime (const PluginCreateRuntimeParams ¶ms) const |
virtual class PluginRuntime * | createRuntime (const PluginCreateRuntimeParams ¶ms) const =0 |
Public Attributes | |
rr::RRVec3 & | brightness |
rr::RRReal | secondsSinceLastAdjustment |
rr::RRReal | targetIntensity |
Public Attributes inherited from rr_gl::PluginParams | |
const PluginParams * | next |
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.
|
inline |
Convenience ctor, for setting plugin parameters.
|
virtual |
Access to actual plugin code, called by Renderer.
Implements rr_gl::PluginParams.
rr::RRVec3& rr_gl::PluginParamsToneMappingAdjustment::brightness |
Specified 'multiply screen by brightness' operator that will be adjusted.
rr::RRReal rr_gl::PluginParamsToneMappingAdjustment::secondsSinceLastAdjustment |
Number of seconds since last call to this function.
rr::RRReal rr_gl::PluginParamsToneMappingAdjustment::targetIntensity |
Average pixel intensity we want to see after tone mapping, in 0..1 range, e.g. 0.5.