class_cameraattributes.rst 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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/CameraAttributes.xml.
  6. .. _class_CameraAttributes:
  7. CameraAttributes
  8. ================
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`CameraAttributesPhysical<class_CameraAttributesPhysical>`, :ref:`CameraAttributesPractical<class_CameraAttributesPractical>`
  11. Parent class for camera settings.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Controls camera-specific attributes such as depth of field and exposure override.
  16. When used in a :ref:`WorldEnvironment<class_WorldEnvironment>` it provides default settings for exposure, auto-exposure, and depth of field that will be used by all cameras without their own **CameraAttributes**, including the editor camera. When used in a :ref:`Camera3D<class_Camera3D>` it will override any **CameraAttributes** set in the :ref:`WorldEnvironment<class_WorldEnvironment>`. When used in :ref:`VoxelGI<class_VoxelGI>` or :ref:`LightmapGI<class_LightmapGI>`, only the exposure settings will be used.
  17. See also :ref:`Environment<class_Environment>` for general 3D environment settings.
  18. This is a pure virtual class that is inherited by :ref:`CameraAttributesPhysical<class_CameraAttributesPhysical>` and :ref:`CameraAttributesPractical<class_CameraAttributesPractical>`.
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  25. | :ref:`bool<class_bool>` | :ref:`auto_exposure_enabled<class_CameraAttributes_property_auto_exposure_enabled>` | ``false`` |
  26. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  27. | :ref:`float<class_float>` | :ref:`auto_exposure_scale<class_CameraAttributes_property_auto_exposure_scale>` | ``0.4`` |
  28. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  29. | :ref:`float<class_float>` | :ref:`auto_exposure_speed<class_CameraAttributes_property_auto_exposure_speed>` | ``0.5`` |
  30. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  31. | :ref:`float<class_float>` | :ref:`exposure_multiplier<class_CameraAttributes_property_exposure_multiplier>` | ``1.0`` |
  32. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  33. | :ref:`float<class_float>` | :ref:`exposure_sensitivity<class_CameraAttributes_property_exposure_sensitivity>` | ``100.0`` |
  34. +---------------------------+-------------------------------------------------------------------------------------+-----------+
  35. .. rst-class:: classref-section-separator
  36. ----
  37. .. rst-class:: classref-descriptions-group
  38. Property Descriptions
  39. ---------------------
  40. .. _class_CameraAttributes_property_auto_exposure_enabled:
  41. .. rst-class:: classref-property
  42. :ref:`bool<class_bool>` **auto_exposure_enabled** = ``false``
  43. .. rst-class:: classref-property-setget
  44. - void **set_auto_exposure_enabled** **(** :ref:`bool<class_bool>` value **)**
  45. - :ref:`bool<class_bool>` **is_auto_exposure_enabled** **(** **)**
  46. If ``true``, enables the tonemapping auto exposure mode of the scene renderer. If ``true``, the renderer will automatically determine the exposure setting to adapt to the scene's illumination and the observed light.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _class_CameraAttributes_property_auto_exposure_scale:
  50. .. rst-class:: classref-property
  51. :ref:`float<class_float>` **auto_exposure_scale** = ``0.4``
  52. .. rst-class:: classref-property-setget
  53. - void **set_auto_exposure_scale** **(** :ref:`float<class_float>` value **)**
  54. - :ref:`float<class_float>` **get_auto_exposure_scale** **(** **)**
  55. The scale of the auto exposure effect. Affects the intensity of auto exposure.
  56. .. rst-class:: classref-item-separator
  57. ----
  58. .. _class_CameraAttributes_property_auto_exposure_speed:
  59. .. rst-class:: classref-property
  60. :ref:`float<class_float>` **auto_exposure_speed** = ``0.5``
  61. .. rst-class:: classref-property-setget
  62. - void **set_auto_exposure_speed** **(** :ref:`float<class_float>` value **)**
  63. - :ref:`float<class_float>` **get_auto_exposure_speed** **(** **)**
  64. The speed of the auto exposure effect. Affects the time needed for the camera to perform auto exposure.
  65. .. rst-class:: classref-item-separator
  66. ----
  67. .. _class_CameraAttributes_property_exposure_multiplier:
  68. .. rst-class:: classref-property
  69. :ref:`float<class_float>` **exposure_multiplier** = ``1.0``
  70. .. rst-class:: classref-property-setget
  71. - void **set_exposure_multiplier** **(** :ref:`float<class_float>` value **)**
  72. - :ref:`float<class_float>` **get_exposure_multiplier** **(** **)**
  73. Multiplier for the exposure amount. A higher value results in a brighter image.
  74. .. rst-class:: classref-item-separator
  75. ----
  76. .. _class_CameraAttributes_property_exposure_sensitivity:
  77. .. rst-class:: classref-property
  78. :ref:`float<class_float>` **exposure_sensitivity** = ``100.0``
  79. .. rst-class:: classref-property-setget
  80. - void **set_exposure_sensitivity** **(** :ref:`float<class_float>` value **)**
  81. - :ref:`float<class_float>` **get_exposure_sensitivity** **(** **)**
  82. Sensitivity of camera sensors, measured in ISO. A higher sensitivity results in a brighter image. Only available when :ref:`ProjectSettings.rendering/lights_and_shadows/use_physical_light_units<class_ProjectSettings_property_rendering/lights_and_shadows/use_physical_light_units>` is enabled. When :ref:`auto_exposure_enabled<class_CameraAttributes_property_auto_exposure_enabled>` this can be used as a method of exposure compensation, doubling the value will increase the exposure value (measured in EV100) by 1 stop.
  83. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  84. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  85. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  86. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  88. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  89. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`