rj-action-library/Runtime/Shading/Library/Time.gdshaderinc

14 lines
306 B
Plaintext
Raw Permalink Normal View History

2025-05-18 17:11:31 +00:00
// #include "res://addons/rokojori_action_library/Runtime/Shading/Library/Time.gdshaderinc"
2025-01-03 12:09:23 +00:00
float timeSine( float _TIME, float duration )
{
float t = TIME / duration * 2.0 * PI;
return sin( t );
}
float timeSine01( float _TIME, float duration )
{
return timeSine( _TIME, duration ) * 0.5 + 0.5;
}