Merge pull request #57741 from Chaosus/vs_fixes

This commit is contained in:
Rémi Verschelde 2022-02-07 12:50:44 +01:00 committed by GitHub
commit bfb75d107c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 160 additions and 101 deletions

View file

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

View file

@ -55,11 +55,6 @@ public partial class VisualShaderNode_CLASS_ : _BASE_
return 0;
}
public override string _GetGlobalCode(Shader.Mode mode)
{
return "";
}
public override string _GetCode(Godot.Collections.Array inputVars, Godot.Collections.Array outputVars, Shader.Mode mode, VisualShader.Type type)
{
return "";