Document performance cost of use_texture_alpha=blend (#15244)

This commit is contained in:
Lars Müller 2024-10-08 21:44:44 +02:00 committed by GitHub
parent 1037ee2a55
commit 291c3ad0c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9554,12 +9554,18 @@ Used by `minetest.register_node`.
use_texture_alpha = ..., use_texture_alpha = ...,
-- Specifies how the texture's alpha channel will be used for rendering. -- Specifies how the texture's alpha channel will be used for rendering.
-- possible values: -- Possible values:
-- * "opaque": Node is rendered opaque regardless of alpha channel -- * "opaque":
-- * "clip": A given pixel is either fully see-through or opaque -- Node is rendered opaque regardless of alpha channel.
-- depending on the alpha channel being below/above 50% in value -- * "clip":
-- * "blend": The alpha channel specifies how transparent a given pixel -- A given pixel is either fully see-through or opaque
-- of the rendered node is -- depending on the alpha channel being below/above 50% in value.
-- Use this for nodes with fully transparent and fully opaque areas.
-- * "blend":
-- The alpha channel specifies how transparent a given pixel
-- of the rendered node is. This comes at a performance cost.
-- Only use this when correct rendering
-- among semitransparent nodes is necessary.
-- The default is "opaque" for drawtypes normal, liquid and flowingliquid, -- The default is "opaque" for drawtypes normal, liquid and flowingliquid,
-- mesh and nodebox or "clip" otherwise. -- mesh and nodebox or "clip" otherwise.
-- If set to a boolean value (deprecated): true either sets it to blend -- If set to a boolean value (deprecated): true either sets it to blend