mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Formating and doc.
This commit is contained in:
parent
df65433ee4
commit
3e5f6036ac
2 changed files with 6 additions and 5 deletions
|
@ -9053,12 +9053,13 @@ child will follow movement and rotation of that bone.
|
|||
* `vision_effects`: is a table that controls vision effects
|
||||
* `color_transform_matrix`: is a matrix with default value (identity matrix):
|
||||
```lua
|
||||
{ {1.0, 0.0, 0.0},
|
||||
{0.0, 1.0, 0.0},
|
||||
{0.0, 0.0, 1.0}}
|
||||
{ {1.0, 0.0, 0.0}, -- r
|
||||
{0.0, 1.0, 0.0}, -- g
|
||||
{0.0, 0.0, 1.0}} -- b
|
||||
```
|
||||
|
||||
* can be used for creation color blind effect, base for night vision effect etc.
|
||||
* Work as `transformed_color_RGB = color_transform_matrix * color_RGB`
|
||||
* Can be used for creation color blind effect, base for night vision effect etc.
|
||||
|
||||
```lua
|
||||
-- example of night vision like transform
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue