From 780a7a281b3180725265851df7d6698f575a4c7d Mon Sep 17 00:00:00 2001 From: Chaosus Date: Tue, 30 Jan 2018 17:50:25 +0300 Subject: [PATCH] Viewport doc improvements (cherry picked from commit ffcbb0c3585b03f871197715eb418d22c95ea8e2) --- doc/classes/Viewport.xml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml index 2e89dd9ea39..0698a615294 100644 --- a/doc/classes/Viewport.xml +++ b/doc/classes/Viewport.xml @@ -59,6 +59,7 @@ + Get the specific information about the viewport from rendering pipeline. @@ -182,58 +183,82 @@ + If [code]true[/code] the viewport will be used in AR/VR process. Default value: [code]false[/code]. + If [code]true[/code] the viewport will process 2D audio streams. Default value: [code]false[/code]. + If [code]true[/code] the viewport will process 3D audio streams. Default value: [code]false[/code]. The canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]s. This is relative to the global canvas transform of the viewport. + The overlay mode for test rendered geometry in debug purposes. Default value: [code]DEBUG_DRAW_DISABLED[/code]. + If [code]true[/code] the viewport will disable 3D rendering. For actual disabling use [code]usage[/code]. Default value: [code]false[/code]. The global canvas transform of the viewport. The canvas transform is relative to this. + If [code]true[/code] the viewport will not receive input event. Default value: [code]false[/code]. + If [code]true[/code] the GUI controls on the viewport will lay pixel perfectly. Default value: [code]true[/code]. + If [code]true[/code] the viewport rendering will receive benefits from High Dynamic Range algorithm. Default value: [code]true[/code]. + The multisample anti-aliasing mode. Default value: [code]MSAA_DISABLED[/code]. + If [code]true[/code] the viewport will use [World] defined in [code]world[/code] property. Default value: [code]false[/code]. + If [code]true[/code] the objects rendered by viewport become subjects of mouse picking process. Default value: [code]false[/code]. + The clear mode when viewport used as a render target. Default value: [code]CLEAR_MODE_ALWAYS[/code]. + The update mode when viewport used as a render target. Default value: [code]UPDATE_WHEN_VISIBLE[/code]. + If [code]true[/code] the result of rendering will be flipped vertically. Default value: [code]false[/code]. + The subdivision amount of first quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_4[/code]. + The subdivision amount of second quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_4[/code]. + The subdivision amount of third quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_16[/code]. + The subdivision amount of fourth quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_64[/code]. + The resolution of shadow atlas. Both width and height is equal to one value. + The width and height of viewport. + If [code]true[/code] the viewport should render its background as transparent. Default value: [code]false[/code]. + The rendering mode of viewport. Default value: [code]USAGE_3D[/code]. + The custom [World] which can be used as 3D environment source. + The custom [World2D] which can be used as 2D environment source. @@ -254,6 +279,7 @@ Update the render target only when it is visible. This is the default value. + Always update the render target. @@ -270,30 +296,42 @@ + Enum limiter. Do not use it directly. + Amount of objects in frame. + Amount of vertices in frame. + Amount of material changes in frame. + Amount of shader changes in frame. + Amount of surface changes in frame. + Amount of draw calls in frame. + Enum limiter. Do not use it directly. + Objects are displayed normally. + Objects are displayed without light information. + Objects are displayed in wireframe style. + Multisample anti-aliasing mode disabled. This is the default value.