Faded

ABSTRACT

The Faded operation adjusts the opacity of meshes within the provided mesh-tree uniformly.

PARAMETERS
meshRepresents the mesh-tree containing meshes to adjust opacity. All provided meshes will have their opacity adjusted.
rootThe root of the mesh-tree, serving as the container for mesh selection.
tag_predicate(tag)Determines whether a mesh should be included in the opacity adjustment based on the provided tag.
opacityA scalar value indicating the opacity to apply uniformly to all meshes. The value ranges from 0 (fully transparent) to 1 (fully opaque).
RETURN

If the complete mesh set is provided, all meshes will have their opacity adjusted. The return value is the mesh-tree of all the adjusted meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the selected meshes with adjusted opacity, while the unselected meshes will remain unchanged. Crucially, all meshes you didn't select will still be included in the result mesh_tree, but be provided as is (i.e. no opacity adjustment).

DECLARATION
func Faded([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, opacity)