CG Music Visualization Shader in Unity

10 December 2014

This is a shader I made in unity that uses unity's AudioSource.GetSpectrumData function, and a color of a texture(witch I call a music map) to animate.

I came up with this when I was watching a video off Wipeout HD zone. And I really wanted to try this. So I directly suggested this idea to my project group to use it in a race game we are currently making. But they were not convinced so I made a demo to convince them.

We are now going to use this in our project so I am probably going to improve it. This version supports a base texture normal, illumination, specular and music maps. and it uses a 1x255 texture generated by C# to transport the data to the shader.

screenshot of music shader demo