VisualShaderNodeExpression.xml 1.2 KB

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualShaderNodeExpression" inherits="VisualShaderNodeGroupBase" version="3.4">
  3. <brief_description>
  4. A custom visual shader graph expression written in Godot Shading Language.
  5. </brief_description>
  6. <description>
  7. Custom Godot Shading Language expression, with a custom amount of input and output ports.
  8. The provided code is directly injected into the graph's matching shader function ([code]vertex[/code], [code]fragment[/code], or [code]light[/code]), so it cannot be used to declare functions, varyings, uniforms, or global constants. See [VisualShaderNodeGlobalExpression] for such global definitions.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. </methods>
  14. <members>
  15. <member name="expression" type="String" setter="set_expression" getter="get_expression" default="&quot;&quot;">
  16. An expression in Godot Shading Language, which will be injected at the start of the graph's matching shader function ([code]vertex[/code], [code]fragment[/code], or [code]light[/code]), and thus cannot be used to declare functions, varyings, uniforms, or global constants.
  17. </member>
  18. </members>
  19. <constants>
  20. </constants>
  21. </class>