From c28a90dafbdfab0cf62552f8306bdf1145c120c3 Mon Sep 17 00:00:00 2001 From: paramat Date: Sat, 10 Jan 2015 07:01:54 +0000 Subject: Lua-api.txt: Document that paramtype='light' results in light propagation with attenuation and is essential for a light source to spread it's light --- doc/lua_api.txt | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index eab0cad93..e2d93a059 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -473,8 +473,10 @@ node definition: `param1` is reserved for the engine when `paramtype != "none"`: paramtype = "light" - ^ The value stores light with and without sun in it's - upper and lower 4 bits. + ^ The value stores light with and without sun in its upper and lower 4 bits + respectively. Allows light to propagate from or through the node with + light value falling by 1 per node. This is essential for a light source + node to spread its light. `param2` is reserved for the engine when any of these are used: @@ -1332,7 +1334,8 @@ examples. * Position and size units are inventory slots * Example for formspec 8x4 in 16x resolution: image shall be sized 8 times 16px times 4 times 16px -* If `true` the background is clipped to formspec size (`x` and `y` are used as offset values, `w` and `h` are ignored) +* If `true` the background is clipped to formspec size + (`x` and `y` are used as offset values, `w` and `h` are ignored) #### `pwdfield[,;,;;