Creating a shader with sonar like vision

I’m creating a 2d game where the main protagonist is blind, id like a shader that only shows areas when there is a sound. Kind of like a daredevil type view.

Does anyone have any reading material or examples because i cant find any

Hi @Monstertobbe

This sounds a bit like a wireframe shader. Take a look at this example.

To achieve the local sound effect, you could pass an extra position into the shader (with Material.SetVector) and only color the vertices if the distance to this position is smaller than X.

Hope this helps