mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add dynamic exposure correction (#12959)
* Add uniform for frame delta time * Adjust exposure in logarithmic (EV) space * Add network support and LUA API * Add testing mod
This commit is contained in:
parent
2715cc8bf6
commit
6d45c243f8
29 changed files with 567 additions and 71 deletions
|
@ -7472,6 +7472,15 @@ child will follow movement and rotation of that bone.
|
|||
* `shadows` is a table that controls ambient shadows
|
||||
* `intensity` sets the intensity of the shadows from 0 (no shadows, default) to 1 (blackness)
|
||||
* This value has no effect on clients who have the "Dynamic Shadows" shader disabled.
|
||||
* `exposure` is a table that controls automatic exposure.
|
||||
The basic exposure factor equation is `e = 2^exposure_correction / clamp(luminance, 2^luminance_min, 2^luminance_max)`
|
||||
* `luminance_min` set the lower luminance boundary to use in the calculation
|
||||
* `luminance_max` set the upper luminance boundary to use in the calculation
|
||||
* `exposure_correction` correct observed exposure by the given EV value
|
||||
* `speed_dark_bright` set the speed of adapting to bright light
|
||||
* `speed_bright_dark` set the speed of adapting to dark scene
|
||||
* `center_weight_power` set the power factor for center-weighted luminance measurement
|
||||
|
||||
* `get_lighting()`: returns the current state of lighting for the player.
|
||||
* Result is a table with the same fields as `light_definition` in `set_lighting`.
|
||||
* `respawn()`: Respawns the player using the same mechanism as the death screen,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue