Inverted Alpha (material) Please help!

I’m really sorry, I should have been clearer haha.

This is before-

and this is after the material is applied

What I want is for the walls to become the rainbow rather than the background.

Keep in mind the objects you see like the icicles, plants, and nuclear crates aren’t a part of the cave png, they’re separate sprites. So are the rocks in the background - all separate sprites other than the cave. The cave is just in front of them on the y axis, that’s why the rainbow covers them.

What I want is for the rainbow to go over the opaque areas, not the transparent ones (the insides of the cave).

Thank you for responding though, I know you’re probably really busy.