class_visualshadernodevectorscalarsmoothstep.rst 1.5 KB

1234567891011121314151617181920212223242526272829
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/VisualShaderNodeVectorScalarSmoothStep.xml.
  6. .. _class_VisualShaderNodeVectorScalarSmoothStep:
  7. VisualShaderNodeVectorScalarSmoothStep
  8. ======================================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Calculates a vector SmoothStep function using scalar within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Translates to ``smoothstep(edge0, edge1, x)`` in the shader language, where ``x`` is a scalar.
  15. Returns ``0.0`` if ``x`` is smaller than ``edge0`` and ``1.0`` if ``x`` is larger than ``edge1``. Otherwise the return value is interpolated between ``0.0`` and ``1.0`` using Hermite polynomials.
  16. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  17. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  18. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  19. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`