mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Add an [invert:<mode> texture modifier
Inverts the given channels of the base image. Mode may contain the characters "r", "g", "b", "a". Only the channels that are mentioned in the mode string will be inverted.
This commit is contained in:
@@ -318,6 +318,15 @@ Example:
|
||||
|
||||
default_sandstone.png^[opacity:127
|
||||
|
||||
#### `[invert:<mode>`
|
||||
Inverts the given channels of the base image.
|
||||
Mode may contain the characters "r", "g", "b", "a".
|
||||
Only the channels that are mentioned in the mode string will be inverted.
|
||||
|
||||
Example:
|
||||
|
||||
default_apple.png^[invert:rgb
|
||||
|
||||
#### `[brighten`
|
||||
Brightens the texture.
|
||||
|
||||
|
Reference in New Issue
Block a user