Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
AutoExposure Struct Reference

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.
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ AutoExposure()

AutoExposure::AutoExposure ( )

Member Data Documentation

◆ center_weight_power

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().

◆ exposure_correction

float AutoExposure::exposure_correction

◆ luminance_max

◆ luminance_min

◆ speed_bright_dark

float AutoExposure::speed_bright_dark

◆ speed_dark_bright

float AutoExposure::speed_dark_bright

The documentation for this struct was generated from the following files: