The 3D Spectrogram - Procedural GPU package provides a real-time audio spectrum visualization tool for Unity. Key features include:
- Real-time audio spectrum visualization
- Customizable grid size
- Adjustable contrast
- Configurable outline width and color
- Option to reverse colors
- Simple data interface for any float array (normalized data required)
This package is compatible with Unity 2019.4 or later.
To use the package, follow these steps:
- Import the Spectrogram GPU Shader package into your project.
- Create an empty GameObject and attach an AudioSource component.
- Create a new Material and set its Shader to Custom/SpectrogramGPU.
- Inherit from SpectrumDataProvider or use the SimpleAudioAnalyzer script to point to your AudioSource.
- Add the SpectrogramGPU script to an empty game object.
- Point to the SpectrumDataProvider.
- Attach a gradient to the script and select a time depth (number of frames to keep).
- Set your material to clamping mode for optimal results.
For support and questions, visit https://practicalvr.com or join our Discord community at https://discord.practicalvr.com.
This shader generates a mesh and applies a shader that uses a gradient texture for coloring. The shader is optimized for GPU performance.





