Sonar based on a the article A novel GPU-based sonar simulator for real-time applications ,and if you want a superficial overview or dont have access to science direct Custom Shader and 3D Rendering for computationally efficient Sonar Simulation.
For more information, consult the documentation.
But, just so you can see how it works: