1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-01-09 18:58:45 +08:00
2024-02-26 22:13:45 +05:30

1007 B

Flipbook node

Creates a flipbook, or texture sheet animation, of the UVs supplied to input UV. The amount of tiles on the sheet are defined by the values of the inputs rows and columns. This node can be used to create a texture animation functionality, commonly used for particle effects and sprites. Animation frames will go from top left to bottom right.

This node is only available in shader modes SPATIAL and CANVAS ITEM.

Default value for uv input will be vec2(0, 0) for shader modes PARTICLES, SKY and FOG to avoid errors becouse UV variable is not available for these modes.


Inputs

Name Type Binding Description
uv vec2 UV Input UV value
rows int none Amount of horizontal tiles in texture sheet
columns int none Amount of vertical tiles in texture sheet
anim speed float none Animation speed

Outputs

Name Type Binding Description
uv vec2 None Output UV value