VisualShaderNodeScalarDerivativeFunc.xml 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeScalarDerivativeFunc" inherits="VisualShaderNode" version="4.0">
  3. <brief_description>
  4. Calculates a scalar derivative within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. This node is only available in [code]Fragment[/code] and [code]Light[/code] visual shaders.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <members>
  12. <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeScalarDerivativeFunc.Function" default="0">
  13. The derivative type. See [enum Function] for options.
  14. </member>
  15. </members>
  16. <constants>
  17. <constant name="FUNC_SUM" value="0" enum="Function">
  18. Sum of absolute derivative in [code]x[/code] and [code]y[/code].
  19. </constant>
  20. <constant name="FUNC_X" value="1" enum="Function">
  21. Derivative in [code]x[/code] using local differencing.
  22. </constant>
  23. <constant name="FUNC_Y" value="2" enum="Function">
  24. Derivative in [code]y[/code] using local differencing.
  25. </constant>
  26. <constant name="FUNC_MAX" value="3" enum="Function">
  27. Represents the size of the [enum Function] enum.
  28. </constant>
  29. </constants>
  30. </class>