diff options
author | lhofhansl <larsh@apache.org> | 2022-12-25 16:15:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-25 16:15:32 -0800 |
commit | 1e7804aaf66e2c2a81f81267923621dea17cb274 (patch) | |
tree | 15de0319b559a7679659d66b2b389d71e97352b6 /doc/lua_api.txt | |
parent | afd5caa26a2352c912e1a1976b59e1f89773cdec (diff) | |
download | minetest-1e7804aaf66e2c2a81f81267923621dea17cb274.tar.xz |
Allow saturation to be controlled by the server. (#13075)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index b41189e9c..8dfb991b7 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -7465,6 +7465,9 @@ child will follow movement and rotation of that bone. * Resource intensive - use sparsely * `set_lighting(light_definition)`: sets lighting for the player * `light_definition` is a table with the following optional fields: + * `saturation` sets the saturation (vividness). + 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) * `get_lighting()`: returns the current state of lighting for the player. |