2
0

VisualShaderNodeSmoothStep.xml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeSmoothStep" inherits="VisualShaderNode" version="4.0">
  3. <brief_description>
  4. Calculates a SmoothStep function within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. Translates to [code]smoothstep(edge0, edge1, x)[/code] in the shader language.
  8. Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge0[/code] and [code]1.0[/code] if [code]x[/code] is larger than [code]edge1[/code]. Otherwise, the return value is interpolated between [code]0.0[/code] and [code]1.0[/code] using Hermite polynomials.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <members>
  13. <member name="op_type" type="int" setter="set_op_type" getter="get_op_type" enum="VisualShaderNodeSmoothStep.OpType" default="0">
  14. A type of operands and returned value.
  15. </member>
  16. </members>
  17. <constants>
  18. <constant name="OP_TYPE_SCALAR" value="0" enum="OpType">
  19. A scalar type.
  20. </constant>
  21. <constant name="OP_TYPE_VECTOR" value="1" enum="OpType">
  22. A vector type.
  23. </constant>
  24. <constant name="OP_TYPE_VECTOR_SCALAR" value="2" enum="OpType">
  25. A vector type. [code]edge0[/code] and [code]edge1[/code] are using a scalar type.
  26. </constant>
  27. <constant name="OP_TYPE_MAX" value="3" enum="OpType">
  28. Represents the size of the [enum OpType] enum.
  29. </constant>
  30. </constants>
  31. </class>