class_xrvrs.rst 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/XRVRS.xml.
  6. .. _class_XRVRS:
  7. XRVRS
  8. =====
  9. **Inherits:** :ref:`Object<class_Object>`
  10. Helper class for XR interfaces that generates VRS images.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. This class is used by various XR interfaces to generate VRS textures that can be used to speed up rendering.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +-----------------------------+------------------------------------------------------------------+------------------------+
  21. | :ref:`float<class_float>` | :ref:`vrs_min_radius<class_XRVRS_property_vrs_min_radius>` | ``20.0`` |
  22. +-----------------------------+------------------------------------------------------------------+------------------------+
  23. | :ref:`Rect2i<class_Rect2i>` | :ref:`vrs_render_region<class_XRVRS_property_vrs_render_region>` | ``Rect2i(0, 0, 0, 0)`` |
  24. +-----------------------------+------------------------------------------------------------------+------------------------+
  25. | :ref:`float<class_float>` | :ref:`vrs_strength<class_XRVRS_property_vrs_strength>` | ``1.0`` |
  26. +-----------------------------+------------------------------------------------------------------+------------------------+
  27. .. rst-class:: classref-reftable-group
  28. Methods
  29. -------
  30. .. table::
  31. :widths: auto
  32. +-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`RID<class_RID>` | :ref:`make_vrs_texture<class_XRVRS_method_make_vrs_texture>`\ (\ target_size\: :ref:`Vector2<class_Vector2>`, eye_foci\: :ref:`PackedVector2Array<class_PackedVector2Array>`\ ) |
  34. +-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_XRVRS_property_vrs_min_radius:
  41. .. rst-class:: classref-property
  42. :ref:`float<class_float>` **vrs_min_radius** = ``20.0`` :ref:`🔗<class_XRVRS_property_vrs_min_radius>`
  43. .. rst-class:: classref-property-setget
  44. - |void| **set_vrs_min_radius**\ (\ value\: :ref:`float<class_float>`\ )
  45. - :ref:`float<class_float>` **get_vrs_min_radius**\ (\ )
  46. The minimum radius around the focal point where full quality is guaranteed if VRS is used as a percentage of screen size.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_XRVRS_property_vrs_render_region:
  50. .. rst-class:: classref-property
  51. :ref:`Rect2i<class_Rect2i>` **vrs_render_region** = ``Rect2i(0, 0, 0, 0)`` :ref:`🔗<class_XRVRS_property_vrs_render_region>`
  52. .. rst-class:: classref-property-setget
  53. - |void| **set_vrs_render_region**\ (\ value\: :ref:`Rect2i<class_Rect2i>`\ )
  54. - :ref:`Rect2i<class_Rect2i>` **get_vrs_render_region**\ (\ )
  55. The render region that the VRS texture will be scaled to when generated.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_XRVRS_property_vrs_strength:
  59. .. rst-class:: classref-property
  60. :ref:`float<class_float>` **vrs_strength** = ``1.0`` :ref:`🔗<class_XRVRS_property_vrs_strength>`
  61. .. rst-class:: classref-property-setget
  62. - |void| **set_vrs_strength**\ (\ value\: :ref:`float<class_float>`\ )
  63. - :ref:`float<class_float>` **get_vrs_strength**\ (\ )
  64. The strength used to calculate the VRS density map. The greater this value, the more noticeable VRS is.
  65. .. rst-class:: classref-section-separator
  66. ----
  67. .. rst-class:: classref-descriptions-group
  68. Method Descriptions
  69. -------------------
  70. .. _class_XRVRS_method_make_vrs_texture:
  71. .. rst-class:: classref-method
  72. :ref:`RID<class_RID>` **make_vrs_texture**\ (\ target_size\: :ref:`Vector2<class_Vector2>`, eye_foci\: :ref:`PackedVector2Array<class_PackedVector2Array>`\ ) :ref:`🔗<class_XRVRS_method_make_vrs_texture>`
  73. Generates the VRS texture based on a render ``target_size`` adjusted by our VRS tile size. For each eyes focal point passed in ``eye_foci`` a layer is created. Focal point should be in NDC.
  74. The result will be cached, requesting a VRS texture with unchanged parameters and settings will return the cached RID.
  75. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  76. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  77. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  78. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  79. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  80. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  81. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  82. .. |void| replace:: :abbr:`void (No return value.)`