Parameters for automatic exposure compensation. More...
#include <lighting.h>
Public Member Functions | |
AutoExposure () | |
Public Attributes | |
float | luminance_min |
Minimum boundary for computed luminance. | |
float | luminance_max |
Maximum boundary for computed luminance. | |
float | exposure_correction |
Luminance bias. Higher values make the scene darker, can be negative. | |
float | speed_dark_bright |
Speed of transition from dark to bright scenes. | |
float | speed_bright_dark |
Speed of transition from bright to dark scenes. | |
float | center_weight_power |
Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly. | |
Parameters for automatic exposure compensation.
Automatic exposure compensation uses the following equation:
wanted_exposure = 2^exposure_correction / clamp(observed_luminance, 2^luminance_min, 2^luminance_max)
AutoExposure::AutoExposure | ( | ) |
float AutoExposure::center_weight_power |
Power value for center-weighted metering. Value of 1.0 measures entire screen uniformly.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().
float AutoExposure::exposure_correction |
Luminance bias. Higher values make the scene darker, can be negative.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().
float AutoExposure::luminance_max |
Maximum boundary for computed luminance.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().
float AutoExposure::luminance_min |
Minimum boundary for computed luminance.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().
float AutoExposure::speed_bright_dark |
Speed of transition from bright to dark scenes.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().
float AutoExposure::speed_dark_bright |
Speed of transition from dark to bright scenes.
Referenced by Client::handleCommand_SetLighting(), ObjectRef::l_get_lighting(), ObjectRef::l_set_lighting(), GameGlobalShaderConstantSetter::onSetConstants(), and Server::SendSetLighting().