class_visualshadernodevectorrefract.rst 1.6 KB

123456789101112131415161718192021222324252627
  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/VisualShaderNodeVectorRefract.xml.
  6. .. _class_VisualShaderNodeVectorRefract:
  7. VisualShaderNodeVectorRefract
  8. =============================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Returns the :ref:`Vector3<class_Vector3>` that points in the direction of refraction. For use within the visual shader graph.
  11. Description
  12. -----------
  13. Translated to ``refract(I, N, eta)`` in the shader language, where ``I`` is the incident vector, ``N`` is the normal vector and ``eta`` is the ratio of the indices of the refraction.
  14. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  15. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  16. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  17. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  18. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  19. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`