VisualShaderNodeUVFunc.xml 1.3 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeUVFunc" inherits="VisualShaderNode" version="4.0">
  3. <brief_description>
  4. Contains functions to modify texture coordinates ([code]uv[/code]) to be used within the visual shader graph.
  5. </brief_description>
  6. <description>
  7. </description>
  8. <tutorials>
  9. </tutorials>
  10. <members>
  11. <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeUVFunc.Function" default="0">
  12. A function to be applied to the texture coordinates. See [enum Function] for options.
  13. </member>
  14. </members>
  15. <constants>
  16. <constant name="FUNC_PANNING" value="0" enum="Function">
  17. Translates [code]uv[/code] by using [code]scale[/code] and [code]offset[/code] values using the following formula: [code]uv = uv + offset * scale[/code]. [code]uv[/code] port is connected to [code]UV[/code] built-in by default.
  18. </constant>
  19. <constant name="FUNC_SCALING" value="1" enum="Function">
  20. Scales [code]uv[/uv] by using [code]scale[/code] and [code]pivot[/code] values using the following formula: [code]uv = (uv - pivot) * scale + pivot[/code]. [code]uv[/code] port is connected to [code]UV[/code] built-in by default.
  21. </constant>
  22. <constant name="FUNC_MAX" value="2" enum="Function">
  23. Represents the size of the [enum Function] enum.
  24. </constant>
  25. </constants>
  26. </class>