Fix VisualShaderNodeCustom script template

This commit is contained in:
Yuri Roubinsky 2022-03-09 09:45:20 +03:00
parent f73ef03a86
commit 4fee0e3b7d

View File

@ -34,5 +34,5 @@ func _get_output_port_name(port: int) -> String:
func _get_output_port_type(port: int) -> int:
return PORT_TYPE_SCALAR
func _get_code(input_vars: Array[String], output_vars: Array[String], mode: Shader.Mode, type: VisualShader.Type) -> String:
func _get_code(input_vars: Array[String], output_vars: Array[String], mode: int, type: int) -> String:
return output_vars[0] + " = 0.0;"