Material Double Dot Product World Origin

Hello everyone, I’m trying to achieve a specific material opacity mask. Please look at the graph below.

Or perhaps there is an easier method to achieve the same results? Any help will be greatly appreciated. I’ve been at this for hours. I’m so close!

Here ya go!

My savior! Thank you so much.