Shield shader for 2D space game

I started learning shader basics and GLSL a few days ago. I’m making a 2D space game inspired by the classic “Comet Busters!” in a game engine called Bevy ( This shader will be used for a shield around the player’s spaceship that can protect it from asteroids and other players. The different colors will be used for multiplayer.