class_worldenvironment.rst 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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/WorldEnvironment.xml.
  6. .. _class_WorldEnvironment:
  7. WorldEnvironment
  8. ================
  9. **Inherits:** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. Default environment properties for the entire scene (post-processing effects, lighting and background settings).
  11. Description
  12. -----------
  13. The ``WorldEnvironment`` node is used to configure the default :ref:`Environment<class_Environment>` for the scene.
  14. The parameters defined in the ``WorldEnvironment`` can be overridden by an :ref:`Environment<class_Environment>` node set on the current :ref:`Camera3D<class_Camera3D>`. Additionally, only one ``WorldEnvironment`` may be instantiated in a given scene at a time.
  15. The ``WorldEnvironment`` allows the user to specify default lighting parameters (e.g. ambient lighting), various post-processing effects (e.g. SSAO, DOF, Tonemapping), and how to draw the background (e.g. solid color, skybox). Usually, these are added in order to improve the realism/color balance of the scene.
  16. Tutorials
  17. ---------
  18. - :doc:`Environment and post-processing <../tutorials/3d/environment_and_post_processing>`
  19. - `3D Material Testers Demo <https://godotengine.org/asset-library/asset/123>`__
  20. - `2D HDR Demo <https://godotengine.org/asset-library/asset/110>`__
  21. - `Third Person Shooter Demo <https://godotengine.org/asset-library/asset/678>`__
  22. Properties
  23. ----------
  24. +-------------------------------------------+-----------------------------------------------------------------------+
  25. | :ref:`CameraEffects<class_CameraEffects>` | :ref:`camera_effects<class_WorldEnvironment_property_camera_effects>` |
  26. +-------------------------------------------+-----------------------------------------------------------------------+
  27. | :ref:`Environment<class_Environment>` | :ref:`environment<class_WorldEnvironment_property_environment>` |
  28. +-------------------------------------------+-----------------------------------------------------------------------+
  29. Property Descriptions
  30. ---------------------
  31. .. _class_WorldEnvironment_property_camera_effects:
  32. - :ref:`CameraEffects<class_CameraEffects>` **camera_effects**
  33. +----------+---------------------------+
  34. | *Setter* | set_camera_effects(value) |
  35. +----------+---------------------------+
  36. | *Getter* | get_camera_effects() |
  37. +----------+---------------------------+
  38. The :ref:`CameraEffects<class_CameraEffects>` resource used by this ``WorldEnvironment``, defining the default properties. This :ref:`CameraEffects<class_CameraEffects>` resource will be used by all :ref:`Camera3D<class_Camera3D>`\ s that do not define their own :ref:`CameraEffects<class_CameraEffects>`.
  39. ----
  40. .. _class_WorldEnvironment_property_environment:
  41. - :ref:`Environment<class_Environment>` **environment**
  42. +----------+------------------------+
  43. | *Setter* | set_environment(value) |
  44. +----------+------------------------+
  45. | *Getter* | get_environment() |
  46. +----------+------------------------+
  47. The :ref:`Environment<class_Environment>` resource used by this ``WorldEnvironment``, defining the default properties.
  48. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  49. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  50. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  51. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  52. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  53. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`