Răsfoiți Sursa

Merge pull request #4054 from Chaosus/fix_vs_plugins

Fix visual shader plugin example
Yuri Roubinsky 5 ani în urmă
părinte
comite
3bcc5d73f7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      tutorials/plugins/editor/visual_shader_plugins.rst

+ 1 - 1
tutorials/plugins/editor/visual_shader_plugins.rst

@@ -188,7 +188,7 @@ all you need to initialize your plugin.
 
 
     func _get_code(input_vars, output_vars, mode, type):
-        return output_vars[0] + " = cnoise(vec3((%s.xy + %s.xy) * %s, %s)) * 0.5 + 0.5" % [input_vars[0], input_vars[1], input_vars[2], input_vars[3]]
+        return output_vars[0] + " = cnoise(vec3((%s.xy + %s.xy) * %s, %s)) * 0.5 + 0.5;" % [input_vars[0], input_vars[1], input_vars[2], input_vars[3]]
 
 Save it and open the Visual Shader. You should see your new node type within the member's dialog (if you can't see your new node, try restarting the editor):