Skip to content

Fixkey/Waving-Flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waving-Flag

Waving flag made with Unity shader (Unity ver. 2019.3.0a4). You can adjust it's Speed, Frequency and Amplitude.

If you are looking just for the formula it's:

v.vertex.y += cos((v.vertex.x + _Time.y * _Speed) * _Frequency) * _Amplitude * (v.vertex.x - 5)

DEMO

demo

About

Waving flag made with Unity shader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published