mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 20:35:57 +08:00
Update FlipbookUV.gd
This commit is contained in:
@ -11,23 +11,18 @@ func _init() -> void:
|
|||||||
func _get_name() -> String:
|
func _get_name() -> String:
|
||||||
return "Flipbook"
|
return "Flipbook"
|
||||||
|
|
||||||
|
|
||||||
func _get_category() -> String:
|
func _get_category() -> String:
|
||||||
return "UV"
|
return "UV"
|
||||||
|
|
||||||
|
|
||||||
func _get_description() -> String:
|
func _get_description() -> String:
|
||||||
return "Creates a flipbook, or texture sheet animation, of the UVs supplied to input UV."
|
return "Creates a flipbook, or texture sheet animation, of the UVs supplied to input UV."
|
||||||
|
|
||||||
|
|
||||||
func _get_return_icon_type() -> VisualShaderNode.PortType:
|
func _get_return_icon_type() -> VisualShaderNode.PortType:
|
||||||
return PORT_TYPE_VECTOR_2D
|
return PORT_TYPE_VECTOR_2D
|
||||||
|
|
||||||
|
|
||||||
func _get_input_port_count() -> int:
|
func _get_input_port_count() -> int:
|
||||||
return 6
|
return 6
|
||||||
|
|
||||||
|
|
||||||
func _get_input_port_name(port: int) -> String:
|
func _get_input_port_name(port: int) -> String:
|
||||||
match port:
|
match port:
|
||||||
0:
|
0:
|
||||||
@ -37,14 +32,13 @@ func _get_input_port_name(port: int) -> String:
|
|||||||
2:
|
2:
|
||||||
return "columns"
|
return "columns"
|
||||||
3:
|
3:
|
||||||
return "start_frame"
|
return "start frame"
|
||||||
4:
|
4:
|
||||||
return "end_frame"
|
return "end frame"
|
||||||
5:
|
5:
|
||||||
return "anim_speed"
|
return "anim speed"
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
func _get_input_port_type(port: int) -> VisualShaderNode.PortType:
|
func _get_input_port_type(port: int) -> VisualShaderNode.PortType:
|
||||||
match port:
|
match port:
|
||||||
0:
|
0:
|
||||||
@ -55,15 +49,12 @@ func _get_input_port_type(port: int) -> VisualShaderNode.PortType:
|
|||||||
return PORT_TYPE_SCALAR
|
return PORT_TYPE_SCALAR
|
||||||
return PORT_TYPE_SCALAR
|
return PORT_TYPE_SCALAR
|
||||||
|
|
||||||
|
|
||||||
func _get_output_port_count() -> int:
|
func _get_output_port_count() -> int:
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
|
||||||
func _get_output_port_name(port: int) -> String:
|
func _get_output_port_name(port: int) -> String:
|
||||||
return "uv"
|
return "uv"
|
||||||
|
|
||||||
|
|
||||||
func _get_output_port_type(port: int) -> VisualShaderNode.PortType:
|
func _get_output_port_type(port: int) -> VisualShaderNode.PortType:
|
||||||
return PORT_TYPE_VECTOR_2D
|
return PORT_TYPE_VECTOR_2D
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user