diff options
author | sapier <sapier at gmx dot net> | 2017-01-14 23:16:58 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-01-30 16:37:17 +0000 |
commit | e761b9f48626db2af8b62a0cf85691208951cf0d (patch) | |
tree | 884ce225989891bd71ef1e5f68dffc14817b7fdc /doc/lua_api.txt | |
parent | 6642c8583a8635a5d61f11ca53254b4ae03d9c70 (diff) | |
download | minetest-e761b9f48626db2af8b62a0cf85691208951cf0d.tar.gz minetest-e761b9f48626db2af8b62a0cf85691208951cf0d.tar.bz2 minetest-e761b9f48626db2af8b62a0cf85691208951cf0d.zip |
Add multiply texture modifier
Allows colorizing of textures using a color multiplication method.
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 9a1cb6bac..219882f46 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -419,6 +419,13 @@ the word "`alpha`", then each texture pixel will contain the RGB of `<color>` and the alpha of `<color>` multiplied by the alpha of the texture pixel. +#### `[multiply:<color>` +Multiplies texture colors with the given color. +`<color>` is specified as a `ColorString`. +Result is more like what you'd expect if you put a color on top of another +color. Meaning white surfaces get a lot of your new color while black parts don't +change very much. + Sounds ------ Only Ogg Vorbis files are supported. |