From 29f67a95818357544737c978d10199cd07ffd2aa Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Wed, 13 Sep 2023 22:25:49 +0200 Subject: [PATCH] Update `[png` information to mention it is format-agnostic --- doc/texture_modifiers.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/texture_modifiers.adoc b/doc/texture_modifiers.adoc index afbdc2f..f363119 100644 --- a/doc/texture_modifiers.adoc +++ b/doc/texture_modifiers.adoc @@ -350,11 +350,12 @@ These modifiers do not accept a base texture as they generate one from their arg ===== `[png:` -* `data` is a base64-encoded PNG bytestring +* `data` is a base64-encoded image bytestring -Creates a texture from an embedded base64-encoded PNG image. +Creates a texture from an embedded base64-encoded image. +Contrary to the texture modifier's name, it supports any image format that IrrlichtMt supports, not only PNG. -`data` can be built by combining `minetest.encode_base64` and `minetest.encode_png`: +For PNG images, `data` can be built by combining `minetest.encode_base64` and `minetest.encode_png`: [source,lua] ====