From fcb9be66a252b59327ca113c2f6e2ba2f8bc8599 Mon Sep 17 00:00:00 2001 From: BimDav <67792882+BimDav@users.noreply.github.com> Date: Thu, 2 Sep 2021 20:07:04 +0200 Subject: Viewport canvas cull mask feature Co-authored-by: Valentin Zagura --- doc/classes/CanvasItem.xml | 18 ++++++++++++++++++ doc/classes/RenderingServer.xml | 16 ++++++++++++++++ doc/classes/Viewport.xml | 18 ++++++++++++++++++ 3 files changed, 52 insertions(+) (limited to 'doc') diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index b2d3e5cfdb..22e2698de8 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -456,6 +456,13 @@ Returns this item's transform in relation to the viewport. + + + + + Returns an individual bit on the rendering visibility layer. + + @@ -527,6 +534,14 @@ If [param enable] is [code]true[/code], this node will receive [constant NOTIFICATION_TRANSFORM_CHANGED] when its global transform changes. + + + + + + Set/clear individual bits on the rendering visibility layer. This simplifies editing this [CanvasItem]'s visibility layer. + + @@ -565,6 +580,9 @@ If [code]true[/code], the parent [CanvasItem]'s [member material] property is used as this one's material. + + The rendering layer in which this [CanvasItem] is rendered by [Viewport] nodes. A [Viewport] will render a [CanvasItem] if it and all its parents share a layer with the [Viewport]'s canvas cull mask. + If [code]true[/code], this [CanvasItem] is drawn. The node is only visible if all of its antecedents are visible as well (in other words, [method is_visible_in_tree] must return [code]true[/code]). [b]Note:[/b] For controls that inherit [Popup], the correct way to make them visible is to call one of the multiple [code]popup*()[/code] functions instead. diff --git a/doc/classes/RenderingServer.xml b/doc/classes/RenderingServer.xml index 376ba34056..cd8c082af2 100644 --- a/doc/classes/RenderingServer.xml +++ b/doc/classes/RenderingServer.xml @@ -498,6 +498,14 @@ Sets if the [CanvasItem] uses its parent's material. + + + + + + Sets the rendering visibility layer associated with this [CanvasItem]. Only [Viewport] nodes with a matching rendering mask will render this [CanvasItem]. + + @@ -3142,6 +3150,14 @@ If [code]true[/code], sets the viewport active, else sets it inactive. + + + + + + Sets the rendering mask associated with this [Viewport]. Only [CanvasItem] nodes with a matching rendering visibility layer will be rendered by this [Viewport]. + + diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index 5706d098e8..78013a8f4b 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -45,6 +45,13 @@ Returns the currently active 3D camera. + + + + + Returns an individual bit on the rendering layer mask. + + @@ -176,6 +183,14 @@ If none of the methods handle the event and [member physics_object_picking] is [code]true[/code], the event is used for physics object picking. + + + + + + Set/clear individual bits on the rendering layer mask. This simplifies editing this [Viewport]'s layers. + + @@ -205,6 +220,9 @@ If [code]true[/code], the viewport will process 3D audio streams. + + The rendering layers in which this [Viewport] renders [CanvasItem] nodes. + Sets the default filter mode used by [CanvasItem]s in this Viewport. See [enum DefaultCanvasItemTextureFilter] for options. -- cgit v1.2.3