class_visualshadernodesample3d.rst 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 VisualShaderNodeSample3D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeSample3D:
  6. VisualShaderNodeSample3D
  7. ========================
  8. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`VisualShaderNodeTexture2DArray<class_VisualShaderNodeTexture2DArray>`, :ref:`VisualShaderNodeTexture3D<class_VisualShaderNodeTexture3D>`
  10. A base node for nodes which samples 3D textures in the visual shader graph.
  11. Description
  12. -----------
  13. A virtual class, use the descendants instead.
  14. Properties
  15. ----------
  16. +-----------------------------------------------------+---------------------------------------------------------------+-------+
  17. | :ref:`Source<enum_VisualShaderNodeSample3D_Source>` | :ref:`source<class_VisualShaderNodeSample3D_property_source>` | ``0`` |
  18. +-----------------------------------------------------+---------------------------------------------------------------+-------+
  19. Enumerations
  20. ------------
  21. .. _enum_VisualShaderNodeSample3D_Source:
  22. .. _class_VisualShaderNodeSample3D_constant_SOURCE_TEXTURE:
  23. .. _class_VisualShaderNodeSample3D_constant_SOURCE_PORT:
  24. .. _class_VisualShaderNodeSample3D_constant_SOURCE_MAX:
  25. enum **Source**:
  26. - **SOURCE_TEXTURE** = **0** --- Creates internal uniform and provides a way to assign it within node.
  27. - **SOURCE_PORT** = **1** --- Use the uniform texture from sampler port.
  28. - **SOURCE_MAX** = **2** --- Represents the size of the :ref:`Source<enum_VisualShaderNodeSample3D_Source>` enum.
  29. Property Descriptions
  30. ---------------------
  31. .. _class_VisualShaderNodeSample3D_property_source:
  32. - :ref:`Source<enum_VisualShaderNodeSample3D_Source>` **source**
  33. +-----------+-------------------+
  34. | *Default* | ``0`` |
  35. +-----------+-------------------+
  36. | *Setter* | set_source(value) |
  37. +-----------+-------------------+
  38. | *Getter* | get_source() |
  39. +-----------+-------------------+
  40. An input source type.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  45. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  46. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`