class_renderscenebuffersconfiguration.rst 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/RenderSceneBuffersConfiguration.xml.
  6. .. _class_RenderSceneBuffersConfiguration:
  7. RenderSceneBuffersConfiguration
  8. ===============================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Configuration object used to setup a :ref:`RenderSceneBuffers<class_RenderSceneBuffers>` object.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This configuration object is created and populated by the render engine on a viewport change and used to (re)configure a :ref:`RenderSceneBuffers<class_RenderSceneBuffers>` object.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  21. | :ref:`float<class_float>` | :ref:`fsr_sharpness<class_RenderSceneBuffersConfiguration_property_fsr_sharpness>` | ``0.0`` |
  22. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  23. | :ref:`Vector2i<class_Vector2i>` | :ref:`internal_size<class_RenderSceneBuffersConfiguration_property_internal_size>` | ``Vector2i(0, 0)`` |
  24. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  25. | :ref:`ViewportMSAA<enum_RenderingServer_ViewportMSAA>` | :ref:`msaa_3d<class_RenderSceneBuffersConfiguration_property_msaa_3d>` | ``0`` |
  26. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  27. | :ref:`RID<class_RID>` | :ref:`render_target<class_RenderSceneBuffersConfiguration_property_render_target>` | ``RID()`` |
  28. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  29. | :ref:`ViewportScaling3DMode<enum_RenderingServer_ViewportScaling3DMode>` | :ref:`scaling_3d_mode<class_RenderSceneBuffersConfiguration_property_scaling_3d_mode>` | ``255`` |
  30. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  31. | :ref:`ViewportScreenSpaceAA<enum_RenderingServer_ViewportScreenSpaceAA>` | :ref:`screen_space_aa<class_RenderSceneBuffersConfiguration_property_screen_space_aa>` | ``0`` |
  32. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  33. | :ref:`Vector2i<class_Vector2i>` | :ref:`target_size<class_RenderSceneBuffersConfiguration_property_target_size>` | ``Vector2i(0, 0)`` |
  34. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  35. | :ref:`float<class_float>` | :ref:`texture_mipmap_bias<class_RenderSceneBuffersConfiguration_property_texture_mipmap_bias>` | ``0.0`` |
  36. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  37. | :ref:`int<class_int>` | :ref:`view_count<class_RenderSceneBuffersConfiguration_property_view_count>` | ``1`` |
  38. +--------------------------------------------------------------------------+------------------------------------------------------------------------------------------------+--------------------+
  39. .. rst-class:: classref-section-separator
  40. ----
  41. .. rst-class:: classref-descriptions-group
  42. Property Descriptions
  43. ---------------------
  44. .. _class_RenderSceneBuffersConfiguration_property_fsr_sharpness:
  45. .. rst-class:: classref-property
  46. :ref:`float<class_float>` **fsr_sharpness** = ``0.0``
  47. .. rst-class:: classref-property-setget
  48. - void **set_fsr_sharpness** **(** :ref:`float<class_float>` value **)**
  49. - :ref:`float<class_float>` **get_fsr_sharpness** **(** **)**
  50. FSR Sharpness applicable if FSR upscaling is used.
  51. .. rst-class:: classref-item-separator
  52. ----
  53. .. _class_RenderSceneBuffersConfiguration_property_internal_size:
  54. .. rst-class:: classref-property
  55. :ref:`Vector2i<class_Vector2i>` **internal_size** = ``Vector2i(0, 0)``
  56. .. rst-class:: classref-property-setget
  57. - void **set_internal_size** **(** :ref:`Vector2i<class_Vector2i>` value **)**
  58. - :ref:`Vector2i<class_Vector2i>` **get_internal_size** **(** **)**
  59. The size of the 3D render buffer used for rendering.
  60. .. rst-class:: classref-item-separator
  61. ----
  62. .. _class_RenderSceneBuffersConfiguration_property_msaa_3d:
  63. .. rst-class:: classref-property
  64. :ref:`ViewportMSAA<enum_RenderingServer_ViewportMSAA>` **msaa_3d** = ``0``
  65. .. rst-class:: classref-property-setget
  66. - void **set_msaa_3d** **(** :ref:`ViewportMSAA<enum_RenderingServer_ViewportMSAA>` value **)**
  67. - :ref:`ViewportMSAA<enum_RenderingServer_ViewportMSAA>` **get_msaa_3d** **(** **)**
  68. The MSAA mode we're using for 3D rendering.
  69. .. rst-class:: classref-item-separator
  70. ----
  71. .. _class_RenderSceneBuffersConfiguration_property_render_target:
  72. .. rst-class:: classref-property
  73. :ref:`RID<class_RID>` **render_target** = ``RID()``
  74. .. rst-class:: classref-property-setget
  75. - void **set_render_target** **(** :ref:`RID<class_RID>` value **)**
  76. - :ref:`RID<class_RID>` **get_render_target** **(** **)**
  77. The render target associated with these buffer.
  78. .. rst-class:: classref-item-separator
  79. ----
  80. .. _class_RenderSceneBuffersConfiguration_property_scaling_3d_mode:
  81. .. rst-class:: classref-property
  82. :ref:`ViewportScaling3DMode<enum_RenderingServer_ViewportScaling3DMode>` **scaling_3d_mode** = ``255``
  83. .. rst-class:: classref-property-setget
  84. - void **set_scaling_3d_mode** **(** :ref:`ViewportScaling3DMode<enum_RenderingServer_ViewportScaling3DMode>` value **)**
  85. - :ref:`ViewportScaling3DMode<enum_RenderingServer_ViewportScaling3DMode>` **get_scaling_3d_mode** **(** **)**
  86. The requested scaling mode with which we upscale/downscale if :ref:`internal_size<class_RenderSceneBuffersConfiguration_property_internal_size>` and :ref:`target_size<class_RenderSceneBuffersConfiguration_property_target_size>` are not equal.
  87. .. rst-class:: classref-item-separator
  88. ----
  89. .. _class_RenderSceneBuffersConfiguration_property_screen_space_aa:
  90. .. rst-class:: classref-property
  91. :ref:`ViewportScreenSpaceAA<enum_RenderingServer_ViewportScreenSpaceAA>` **screen_space_aa** = ``0``
  92. .. rst-class:: classref-property-setget
  93. - void **set_screen_space_aa** **(** :ref:`ViewportScreenSpaceAA<enum_RenderingServer_ViewportScreenSpaceAA>` value **)**
  94. - :ref:`ViewportScreenSpaceAA<enum_RenderingServer_ViewportScreenSpaceAA>` **get_screen_space_aa** **(** **)**
  95. The requested screen space AA applied in post processing.
  96. .. rst-class:: classref-item-separator
  97. ----
  98. .. _class_RenderSceneBuffersConfiguration_property_target_size:
  99. .. rst-class:: classref-property
  100. :ref:`Vector2i<class_Vector2i>` **target_size** = ``Vector2i(0, 0)``
  101. .. rst-class:: classref-property-setget
  102. - void **set_target_size** **(** :ref:`Vector2i<class_Vector2i>` value **)**
  103. - :ref:`Vector2i<class_Vector2i>` **get_target_size** **(** **)**
  104. The target (upscale) size if scaling is used.
  105. .. rst-class:: classref-item-separator
  106. ----
  107. .. _class_RenderSceneBuffersConfiguration_property_texture_mipmap_bias:
  108. .. rst-class:: classref-property
  109. :ref:`float<class_float>` **texture_mipmap_bias** = ``0.0``
  110. .. rst-class:: classref-property-setget
  111. - void **set_texture_mipmap_bias** **(** :ref:`float<class_float>` value **)**
  112. - :ref:`float<class_float>` **get_texture_mipmap_bias** **(** **)**
  113. Bias applied to mipmaps.
  114. .. rst-class:: classref-item-separator
  115. ----
  116. .. _class_RenderSceneBuffersConfiguration_property_view_count:
  117. .. rst-class:: classref-property
  118. :ref:`int<class_int>` **view_count** = ``1``
  119. .. rst-class:: classref-property-setget
  120. - void **set_view_count** **(** :ref:`int<class_int>` value **)**
  121. - :ref:`int<class_int>` **get_view_count** **(** **)**
  122. The number of views we're rendering.
  123. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  124. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  125. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  126. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  127. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  128. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  129. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`