class_xrvrs.rst 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.3/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/4.3/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:`float<class_float>` | :ref:`vrs_strength<class_XRVRS_property_vrs_strength>` | ``1.0`` |
  24. +---------------------------+------------------------------------------------------------+----------+
  25. .. rst-class:: classref-reftable-group
  26. Methods
  27. -------
  28. .. table::
  29. :widths: auto
  30. +-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :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>`\ ) |
  32. +-----------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. .. rst-class:: classref-section-separator
  34. ----
  35. .. rst-class:: classref-descriptions-group
  36. Property Descriptions
  37. ---------------------
  38. .. _class_XRVRS_property_vrs_min_radius:
  39. .. rst-class:: classref-property
  40. :ref:`float<class_float>` **vrs_min_radius** = ``20.0`` :ref:`🔗<class_XRVRS_property_vrs_min_radius>`
  41. .. rst-class:: classref-property-setget
  42. - |void| **set_vrs_min_radius**\ (\ value\: :ref:`float<class_float>`\ )
  43. - :ref:`float<class_float>` **get_vrs_min_radius**\ (\ )
  44. The minimum radius around the focal point where full quality is guaranteed if VRS is used as a percentage of screen size.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_XRVRS_property_vrs_strength:
  48. .. rst-class:: classref-property
  49. :ref:`float<class_float>` **vrs_strength** = ``1.0`` :ref:`🔗<class_XRVRS_property_vrs_strength>`
  50. .. rst-class:: classref-property-setget
  51. - |void| **set_vrs_strength**\ (\ value\: :ref:`float<class_float>`\ )
  52. - :ref:`float<class_float>` **get_vrs_strength**\ (\ )
  53. The strength used to calculate the VRS density map. The greater this value, the more noticeable VRS is.
  54. .. rst-class:: classref-section-separator
  55. ----
  56. .. rst-class:: classref-descriptions-group
  57. Method Descriptions
  58. -------------------
  59. .. _class_XRVRS_method_make_vrs_texture:
  60. .. rst-class:: classref-method
  61. :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>`
  62. 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.
  63. The result will be cached, requesting a VRS texture with unchanged parameters and settings will return the cached RID.
  64. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  65. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  66. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  67. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  68. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  69. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  70. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  71. .. |void| replace:: :abbr:`void (No return value.)`