mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 14:42:24 +01:00
Document performance cost of use_texture_alpha=blend (#15244)
This commit is contained in:
parent
1037ee2a55
commit
291c3ad0c1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user