diff --git a/doc/lua_api.md b/doc/lua_api.md index e5572259c..7bfc10a04 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -8263,22 +8263,23 @@ child will follow movement and rotation of that bone. * Passing no arguments resets lighting to its default values. * `light_definition` is a table with the following optional fields: * `saturation` sets the saturation (vividness; default: `1.0`). - values > 1 increase the saturation - values in [0,1) decrease the saturation + * Values > 1 increase the saturation + * Values in [0, 1] decrease the saturation * `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. + * `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 (default: `-3.0`) - * `luminance_max` set the upper luminance boundary to use in the calculation (default: `-3.0`) - * `exposure_correction` correct observed exposure by the given EV value (default: `0.0`) - * `speed_dark_bright` set the speed of adapting to bright light (default: `1000.0`) - * `speed_bright_dark` set the speed of adapting to dark scene (default: `1000.0`) - * `center_weight_power` set the power factor for center-weighted luminance measurement (default: `1.0`) + * `luminance_min` set the lower luminance boundary to use in the calculation (default: `-3.0`) + * `luminance_max` set the upper luminance boundary to use in the calculation (default: `-3.0`) + * `exposure_correction` correct observed exposure by the given EV value (default: `0.0`) + * `speed_dark_bright` set the speed of adapting to bright light (default: `1000.0`) + * `speed_bright_dark` set the speed of adapting to dark scene (default: `1000.0`) + * `center_weight_power` set the power factor for center-weighted luminance measurement (default: `1.0`) * `volumetric_light`: is a table that controls volumetric light (a.k.a. "godrays") - * `strength`: sets the strength of the volumetric light effect from 0 (off, default) to 1 (strongest) - * This value has no effect on clients who have the "Volumetric Lighting" or "Bloom" shaders disabled. + * `strength`: sets the strength of the volumetric light effect from 0 (off, default) to 1 (strongest) + * This value has no effect on clients who have the "Volumetric Lighting" or "Bloom" shaders disabled. * `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`.