Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a67a881

Browse files
committed
Fix visual shader plugin example
1 parent 25a4014 commit a67a881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/plugins/editor/visual_shader_plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ all you need to initialize your plugin.
188188

189189

190190
func _get_code(input_vars, output_vars, mode, type):
191-
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]]
191+
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]]
192192

193193
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):
194194

0 commit comments

Comments
 (0)