Exclusively horizontal Fresnel effect

Before I describe my situation I want to say that I do know how the fresnel node works. I’ve reproduced it before.

My problem is that fresnel only outputs a single float, which describes both the vertical and horizontal factor of the effect. My question is how can I create a fresnel effect that only reacts to the horizontalness. So I need a 0-1 float (0 being looking at the surface straight on and 1 being looking at the surface completely horizontal).

I think I mentioned this but how up or down your view is to the surface shouldn’t affect the output.

Hi, you can negate the effect on surfaces pointing upwards by multiplying fresnel with the x component of the geometry normal in camera space. Like this :