TAB3D - Flag Wave Shader Official Thread

Hi all,

Wanted to create this thread to keep you all updated and answer questions you may have about my Flag Wave Shader asset. Please feel free to post any comments, questions and issues with this package, I will do my best to get back to you and help.

The Flag Wave Shader is a simple solution to animate flags inside unity when the system performance of your target audience is limited.

There are three shaders included as of version 1.1 which is imminent:

  • Tessellated
  • Non-Tessellated
  • Non-Tessellated SM3.0

The tessellated shader is DX11 only and will automatically fall back to the non-tessellated shader if it is unsupported. It smooths the mesh to remove harsh lines whilst the wave effect is happening. The non-tessellated shader will fall back to the non-tessellated SM3.0 shader if SM4.6 isn’t available.

The non-tessellated shader is supported on only PC and the non-tessellated shader SM3.0 is supported on Mac and PC. Both non-tessellated shaders will show harsh lines if your mesh doesn’t have enough vertices.

How Does it work?

It requires the ‘cloth’ of the flag to be aligned with the x axis in your modelling program (it can be rotated in Unity). The shader uses a ‘flex map’ to recognise which areas of the flag should move and which shouldn’t and also by how much.

Examples are included in the package of a tessellated and non-tessellated flag.

1.1 has been approved - that should fix any issues people were having on Mac