class_visualshadernodebillboard.rst 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualShaderNodeBillboard.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeBillboard:
  6. VisualShaderNodeBillboard
  7. =========================
  8. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. A node that controls how the object faces the camera to be used within the visual shader graph.
  10. Description
  11. -----------
  12. The output port of this node needs to be connected to ``Model View Matrix`` port of :ref:`VisualShaderNodeOutput<class_VisualShaderNodeOutput>`.
  13. Properties
  14. ----------
  15. +--------------------------------------------------------------------+--------------------------------------------------------------------------------+-----------+
  16. | :ref:`BillboardType<enum_VisualShaderNodeBillboard_BillboardType>` | :ref:`billboard_type<class_VisualShaderNodeBillboard_property_billboard_type>` | ``1`` |
  17. +--------------------------------------------------------------------+--------------------------------------------------------------------------------+-----------+
  18. | :ref:`bool<class_bool>` | :ref:`keep_scale<class_VisualShaderNodeBillboard_property_keep_scale>` | ``false`` |
  19. +--------------------------------------------------------------------+--------------------------------------------------------------------------------+-----------+
  20. Enumerations
  21. ------------
  22. .. _enum_VisualShaderNodeBillboard_BillboardType:
  23. .. _class_VisualShaderNodeBillboard_constant_BILLBOARD_TYPE_DISABLED:
  24. .. _class_VisualShaderNodeBillboard_constant_BILLBOARD_TYPE_ENABLED:
  25. .. _class_VisualShaderNodeBillboard_constant_BILLBOARD_TYPE_FIXED_Y:
  26. .. _class_VisualShaderNodeBillboard_constant_BILLBOARD_TYPE_PARTICLES:
  27. .. _class_VisualShaderNodeBillboard_constant_BILLBOARD_TYPE_MAX:
  28. enum **BillboardType**:
  29. - **BILLBOARD_TYPE_DISABLED** = **0** --- Billboarding is disabled and the node does nothing.
  30. - **BILLBOARD_TYPE_ENABLED** = **1** --- A standard billboarding algorithm is enabled.
  31. - **BILLBOARD_TYPE_FIXED_Y** = **2** --- A billboarding algorithm to rotate around Y-axis is enabled.
  32. - **BILLBOARD_TYPE_PARTICLES** = **3** --- A billboarding algorithm designed to use on particles is enabled.
  33. - **BILLBOARD_TYPE_MAX** = **4** --- Represents the size of the :ref:`BillboardType<enum_VisualShaderNodeBillboard_BillboardType>` enum.
  34. Property Descriptions
  35. ---------------------
  36. .. _class_VisualShaderNodeBillboard_property_billboard_type:
  37. - :ref:`BillboardType<enum_VisualShaderNodeBillboard_BillboardType>` **billboard_type**
  38. +-----------+---------------------------+
  39. | *Default* | ``1`` |
  40. +-----------+---------------------------+
  41. | *Setter* | set_billboard_type(value) |
  42. +-----------+---------------------------+
  43. | *Getter* | get_billboard_type() |
  44. +-----------+---------------------------+
  45. Controls how the object faces the camera. See :ref:`BillboardType<enum_VisualShaderNodeBillboard_BillboardType>`.
  46. ----
  47. .. _class_VisualShaderNodeBillboard_property_keep_scale:
  48. - :ref:`bool<class_bool>` **keep_scale**
  49. +-----------+-------------------------------+
  50. | *Default* | ``false`` |
  51. +-----------+-------------------------------+
  52. | *Setter* | set_keep_scale_enabled(value) |
  53. +-----------+-------------------------------+
  54. | *Getter* | is_keep_scale_enabled() |
  55. +-----------+-------------------------------+
  56. If ``true``, the shader will keep the scale set for the mesh. Otherwise, the scale is lost when billboarding.
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`