diff --git a/addons/ShaderLib/Artistic/Adjustment/Contrast.gd b/addons/ShaderLib/Artistic/Adjustment/Contrast.gd index 53a59ef..3cbdd34 100644 --- a/addons/ShaderLib/Artistic/Adjustment/Contrast.gd +++ b/addons/ShaderLib/Artistic/Adjustment/Contrast.gd @@ -35,7 +35,7 @@ func _get_input_port_default_value(port: int) -> Variant: 1: return 1.0 _: - return null + return Vector3(1.0, 1.0, 1.0) func _get_output_port_count() -> int: return 1 diff --git a/addons/ShaderLib/Artistic/Adjustment/Hue.gd b/addons/ShaderLib/Artistic/Adjustment/Hue.gd index 6331310..9f29fd5 100644 --- a/addons/ShaderLib/Artistic/Adjustment/Hue.gd +++ b/addons/ShaderLib/Artistic/Adjustment/Hue.gd @@ -35,7 +35,7 @@ func _get_input_port_default_value(port: int) -> Variant: 1: return 0.0 _: - return null + return Vector3(1.0, 1.0, 1.0) func _get_output_port_count() -> int: return 1 diff --git a/addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gd b/addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gd index 1f6eace..8a64cd8 100644 --- a/addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gd +++ b/addons/ShaderLib/Artistic/Adjustment/ReplaceColor.gd @@ -43,7 +43,7 @@ func _get_input_port_default_value(port: int) -> Variant: 3, 4: return 0.0 _: - return null + return Vector3(1.0, 1.0, 1.0) func _get_output_port_count() -> int: return 1 diff --git a/addons/ShaderLib/Artistic/Adjustment/Saturation.gd b/addons/ShaderLib/Artistic/Adjustment/Saturation.gd index ee23a2f..d295558 100644 --- a/addons/ShaderLib/Artistic/Adjustment/Saturation.gd +++ b/addons/ShaderLib/Artistic/Adjustment/Saturation.gd @@ -34,7 +34,7 @@ func _get_input_port_type(port: int) -> PortType: func _get_input_port_default_value(port: int) -> Variant: match port: 0: - return null + return Vector3(1.0, 1.0, 1.0) _: return 1.0 diff --git a/addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gd b/addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gd index f56d33b..f5a31e7 100644 --- a/addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gd +++ b/addons/ShaderLib/Artistic/Adjustment/WhiteBalance.gd @@ -37,7 +37,7 @@ func _get_input_port_default_value(port: int) -> Variant: 1, 2: return 0.0 _: - return null + return Vector3(1.0, 1.0, 1.0) func _get_output_port_count() -> int: return 1 diff --git a/addons/ShaderLib/Artistic/Mask/ColorMask.gd b/addons/ShaderLib/Artistic/Mask/ColorMask.gd index 7117d2e..fbd0b5a 100644 --- a/addons/ShaderLib/Artistic/Mask/ColorMask.gd +++ b/addons/ShaderLib/Artistic/Mask/ColorMask.gd @@ -36,12 +36,12 @@ func _get_input_port_type(port: int) -> PortType: func _get_input_port_default_value(port: int) -> Variant: match port: + 0: + return Vector3(1.0, 1.0, 1.0) 1: return Vector3(0.0, 0.0, 0.0) - 2, 3: - return 0.0 _: - return null + return 0.0 func _get_output_port_count() -> int: return 1