mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (fc1c25d29)
This commit is contained in:
@@ -51,89 +51,91 @@ Tutorials
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`audio_listener_enable_2d<class_Viewport_property_audio_listener_enable_2d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`audio_listener_enable_3d<class_Viewport_property_audio_listener_enable_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`DefaultCanvasItemTextureFilter<enum_Viewport_DefaultCanvasItemTextureFilter>` | :ref:`canvas_item_default_texture_filter<class_Viewport_property_canvas_item_default_texture_filter>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`DefaultCanvasItemTextureRepeat<enum_Viewport_DefaultCanvasItemTextureRepeat>` | :ref:`canvas_item_default_texture_repeat<class_Viewport_property_canvas_item_default_texture_repeat>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`canvas_transform<class_Viewport_property_canvas_transform>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`DebugDraw<enum_Viewport_DebugDraw>` | :ref:`debug_draw<class_Viewport_property_debug_draw>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`disable_3d<class_Viewport_property_disable_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`float<class_float>` | :ref:`fsr_sharpness<class_Viewport_property_fsr_sharpness>` | ``0.2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`global_canvas_transform<class_Viewport_property_global_canvas_transform>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_disable_input<class_Viewport_property_gui_disable_input>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_embed_subwindows<class_Viewport_property_gui_embed_subwindows>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_snap_controls_to_pixels<class_Viewport_property_gui_snap_controls_to_pixels>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`handle_input_locally<class_Viewport_property_handle_input_locally>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`float<class_float>` | :ref:`mesh_lod_threshold<class_Viewport_property_mesh_lod_threshold>` | ``1.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`MSAA<enum_Viewport_MSAA>` | :ref:`msaa_2d<class_Viewport_property_msaa_2d>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`MSAA<enum_Viewport_MSAA>` | :ref:`msaa_3d<class_Viewport_property_msaa_3d>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`own_world_3d<class_Viewport_property_own_world_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`physics_object_picking<class_Viewport_property_physics_object_picking>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`positional_shadow_atlas_16_bits<class_Viewport_property_positional_shadow_atlas_16_bits>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_0<class_Viewport_property_positional_shadow_atlas_quad_0>` | ``2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_1<class_Viewport_property_positional_shadow_atlas_quad_1>` | ``2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_2<class_Viewport_property_positional_shadow_atlas_quad_2>` | ``3`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_3<class_Viewport_property_positional_shadow_atlas_quad_3>` | ``4`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`int<class_int>` | :ref:`positional_shadow_atlas_size<class_Viewport_property_positional_shadow_atlas_size>` | ``2048`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`Scaling3DMode<enum_Viewport_Scaling3DMode>` | :ref:`scaling_3d_mode<class_Viewport_property_scaling_3d_mode>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`float<class_float>` | :ref:`scaling_3d_scale<class_Viewport_property_scaling_3d_scale>` | ``1.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`ScreenSpaceAA<enum_Viewport_ScreenSpaceAA>` | :ref:`screen_space_aa<class_Viewport_property_screen_space_aa>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`SDFOversize<enum_Viewport_SDFOversize>` | :ref:`sdf_oversize<class_Viewport_property_sdf_oversize>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`SDFScale<enum_Viewport_SDFScale>` | :ref:`sdf_scale<class_Viewport_property_sdf_scale>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`snap_2d_transforms_to_pixel<class_Viewport_property_snap_2d_transforms_to_pixel>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`snap_2d_vertices_to_pixel<class_Viewport_property_snap_2d_vertices_to_pixel>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`float<class_float>` | :ref:`texture_mipmap_bias<class_Viewport_property_texture_mipmap_bias>` | ``0.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`transparent_bg<class_Viewport_property_transparent_bg>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_debanding<class_Viewport_property_use_debanding>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_occlusion_culling<class_Viewport_property_use_occlusion_culling>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_taa<class_Viewport_property_use_taa>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_xr<class_Viewport_property_use_xr>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`VRSMode<enum_Viewport_VRSMode>` | :ref:`vrs_mode<class_Viewport_property_vrs_mode>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`vrs_texture<class_Viewport_property_vrs_texture>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`World2D<class_World2D>` | :ref:`world_2d<class_Viewport_property_world_2d>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
| :ref:`World3D<class_World3D>` | :ref:`world_3d<class_Viewport_property_world_3d>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+-----------+
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`audio_listener_enable_2d<class_Viewport_property_audio_listener_enable_2d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`audio_listener_enable_3d<class_Viewport_property_audio_listener_enable_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`int<class_int>` | :ref:`canvas_cull_mask<class_Viewport_property_canvas_cull_mask>` | ``4294967295`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`DefaultCanvasItemTextureFilter<enum_Viewport_DefaultCanvasItemTextureFilter>` | :ref:`canvas_item_default_texture_filter<class_Viewport_property_canvas_item_default_texture_filter>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`DefaultCanvasItemTextureRepeat<enum_Viewport_DefaultCanvasItemTextureRepeat>` | :ref:`canvas_item_default_texture_repeat<class_Viewport_property_canvas_item_default_texture_repeat>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`canvas_transform<class_Viewport_property_canvas_transform>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`DebugDraw<enum_Viewport_DebugDraw>` | :ref:`debug_draw<class_Viewport_property_debug_draw>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`disable_3d<class_Viewport_property_disable_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`float<class_float>` | :ref:`fsr_sharpness<class_Viewport_property_fsr_sharpness>` | ``0.2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`global_canvas_transform<class_Viewport_property_global_canvas_transform>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_disable_input<class_Viewport_property_gui_disable_input>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_embed_subwindows<class_Viewport_property_gui_embed_subwindows>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_snap_controls_to_pixels<class_Viewport_property_gui_snap_controls_to_pixels>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`handle_input_locally<class_Viewport_property_handle_input_locally>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`float<class_float>` | :ref:`mesh_lod_threshold<class_Viewport_property_mesh_lod_threshold>` | ``1.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`MSAA<enum_Viewport_MSAA>` | :ref:`msaa_2d<class_Viewport_property_msaa_2d>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`MSAA<enum_Viewport_MSAA>` | :ref:`msaa_3d<class_Viewport_property_msaa_3d>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`own_world_3d<class_Viewport_property_own_world_3d>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`physics_object_picking<class_Viewport_property_physics_object_picking>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`positional_shadow_atlas_16_bits<class_Viewport_property_positional_shadow_atlas_16_bits>` | ``true`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_0<class_Viewport_property_positional_shadow_atlas_quad_0>` | ``2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_1<class_Viewport_property_positional_shadow_atlas_quad_1>` | ``2`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_2<class_Viewport_property_positional_shadow_atlas_quad_2>` | ``3`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` | :ref:`positional_shadow_atlas_quad_3<class_Viewport_property_positional_shadow_atlas_quad_3>` | ``4`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`int<class_int>` | :ref:`positional_shadow_atlas_size<class_Viewport_property_positional_shadow_atlas_size>` | ``2048`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`Scaling3DMode<enum_Viewport_Scaling3DMode>` | :ref:`scaling_3d_mode<class_Viewport_property_scaling_3d_mode>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`float<class_float>` | :ref:`scaling_3d_scale<class_Viewport_property_scaling_3d_scale>` | ``1.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`ScreenSpaceAA<enum_Viewport_ScreenSpaceAA>` | :ref:`screen_space_aa<class_Viewport_property_screen_space_aa>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`SDFOversize<enum_Viewport_SDFOversize>` | :ref:`sdf_oversize<class_Viewport_property_sdf_oversize>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`SDFScale<enum_Viewport_SDFScale>` | :ref:`sdf_scale<class_Viewport_property_sdf_scale>` | ``1`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`snap_2d_transforms_to_pixel<class_Viewport_property_snap_2d_transforms_to_pixel>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`snap_2d_vertices_to_pixel<class_Viewport_property_snap_2d_vertices_to_pixel>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`float<class_float>` | :ref:`texture_mipmap_bias<class_Viewport_property_texture_mipmap_bias>` | ``0.0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`transparent_bg<class_Viewport_property_transparent_bg>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_debanding<class_Viewport_property_use_debanding>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_occlusion_culling<class_Viewport_property_use_occlusion_culling>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_taa<class_Viewport_property_use_taa>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`use_xr<class_Viewport_property_use_xr>` | ``false`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`VRSMode<enum_Viewport_VRSMode>` | :ref:`vrs_mode<class_Viewport_property_vrs_mode>` | ``0`` |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`Texture2D<class_Texture2D>` | :ref:`vrs_texture<class_Viewport_property_vrs_texture>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`World2D<class_World2D>` | :ref:`world_2d<class_Viewport_property_world_2d>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
| :ref:`World3D<class_World3D>` | :ref:`world_3d<class_Viewport_property_world_3d>` | |
|
||||
+-----------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------+----------------+
|
||||
|
||||
Methods
|
||||
-------
|
||||
@@ -147,6 +149,8 @@ Methods
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Camera3D<class_Camera3D>` | :ref:`get_camera_3d<class_Viewport_method_get_camera_3d>` **(** **)** |const| |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`get_canvas_cull_mask_bit<class_Viewport_method_get_canvas_cull_mask_bit>` **(** :ref:`int<class_int>` layer **)** |const| |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`get_final_transform<class_Viewport_method_get_final_transform>` **(** **)** |const| |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`get_mouse_position<class_Viewport_method_get_mouse_position>` **(** **)** |const| |
|
||||
@@ -155,6 +159,8 @@ Methods
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_render_info<class_Viewport_method_get_render_info>` **(** :ref:`RenderInfoType<enum_Viewport_RenderInfoType>` type, :ref:`RenderInfo<enum_Viewport_RenderInfo>` info **)** |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Transform2D<class_Transform2D>` | :ref:`get_screen_transform<class_Viewport_method_get_screen_transform>` **(** **)** |const| |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`ViewportTexture<class_ViewportTexture>` | :ref:`get_texture<class_Viewport_method_get_texture>` **(** **)** |const| |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`RID<class_RID>` | :ref:`get_viewport_rid<class_Viewport_method_get_viewport_rid>` **(** **)** |const| |
|
||||
@@ -179,6 +185,8 @@ Methods
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`push_unhandled_input<class_Viewport_method_push_unhandled_input>` **(** :ref:`InputEvent<class_InputEvent>` event, :ref:`bool<class_bool>` in_local_coords=false **)** |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_canvas_cull_mask_bit<class_Viewport_method_set_canvas_cull_mask_bit>` **(** :ref:`int<class_int>` layer, :ref:`bool<class_bool>` enable **)** |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_input_as_handled<class_Viewport_method_set_input_as_handled>` **(** **)** |
|
||||
+-----------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_positional_shadow_atlas_quadrant_subdiv<class_Viewport_method_set_positional_shadow_atlas_quadrant_subdiv>` **(** :ref:`int<class_int>` quadrant, :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalShadowAtlasQuadrantSubdiv>` subdiv **)** |
|
||||
@@ -607,6 +615,22 @@ If ``true``, the viewport will process 3D audio streams.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_property_canvas_cull_mask:
|
||||
|
||||
- :ref:`int<class_int>` **canvas_cull_mask**
|
||||
|
||||
+-----------+-----------------------------+
|
||||
| *Default* | ``4294967295`` |
|
||||
+-----------+-----------------------------+
|
||||
| *Setter* | set_canvas_cull_mask(value) |
|
||||
+-----------+-----------------------------+
|
||||
| *Getter* | get_canvas_cull_mask() |
|
||||
+-----------+-----------------------------+
|
||||
|
||||
The rendering layers in which this ``Viewport`` renders :ref:`CanvasItem<class_CanvasItem>` nodes.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_property_canvas_item_default_texture_filter:
|
||||
|
||||
- :ref:`DefaultCanvasItemTextureFilter<enum_Viewport_DefaultCanvasItemTextureFilter>` **canvas_item_default_texture_filter**
|
||||
@@ -1125,6 +1149,10 @@ If ``true``, the viewport should render its background as transparent.
|
||||
| *Getter* | is_using_debanding() |
|
||||
+-----------+--------------------------+
|
||||
|
||||
If ``true``, uses a fast post-processing filter to make banding significantly less visible in 3D. 2D rendering is *not* affected by debanding unless the :ref:`Environment.background_mode<class_Environment_property_background_mode>` is :ref:`Environment.BG_CANVAS<class_Environment_constant_BG_CANVAS>`. See also :ref:`ProjectSettings.rendering/anti_aliasing/quality/use_debanding<class_ProjectSettings_property_rendering/anti_aliasing/quality/use_debanding>`.
|
||||
|
||||
In some cases, debanding may introduce a slightly noticeable dithering pattern. It's recommended to enable debanding only when actually needed since the dithering pattern will make lossless-compressed screenshots larger.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_property_use_occlusion_culling:
|
||||
@@ -1270,6 +1298,14 @@ Returns the currently active 3D camera.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_get_canvas_cull_mask_bit:
|
||||
|
||||
- :ref:`bool<class_bool>` **get_canvas_cull_mask_bit** **(** :ref:`int<class_int>` layer **)** |const|
|
||||
|
||||
Returns an individual bit on the rendering layer mask.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_get_final_transform:
|
||||
|
||||
- :ref:`Transform2D<class_Transform2D>` **get_final_transform** **(** **)** |const|
|
||||
@@ -1300,6 +1336,14 @@ Returns the :ref:`PositionalShadowAtlasQuadrantSubdiv<enum_Viewport_PositionalSh
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_get_screen_transform:
|
||||
|
||||
- :ref:`Transform2D<class_Transform2D>` **get_screen_transform** **(** **)** |const|
|
||||
|
||||
Returns the transform from the Viewport's coordinates to the screen coordinates of the containing window manager window.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_get_texture:
|
||||
|
||||
- :ref:`ViewportTexture<class_ViewportTexture>` **get_texture** **(** **)** |const|
|
||||
@@ -1436,6 +1480,14 @@ If none of the methods handle the event and :ref:`physics_object_picking<class_V
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_set_canvas_cull_mask_bit:
|
||||
|
||||
- void **set_canvas_cull_mask_bit** **(** :ref:`int<class_int>` layer, :ref:`bool<class_bool>` enable **)**
|
||||
|
||||
Set/clear individual bits on the rendering layer mask. This simplifies editing this ``Viewport``'s layers.
|
||||
|
||||
----
|
||||
|
||||
.. _class_Viewport_method_set_input_as_handled:
|
||||
|
||||
- void **set_input_as_handled** **(** **)**
|
||||
|
||||
Reference in New Issue
Block a user