Making a universal parallax offset?

This should be easy, but I’ve been struggling.
I’m trying to create a parallax offset, no occlusion, just move the texture depending on the view direction.

No matter what coordinates I use or nodes I add, the texture almost always moves incorrectly if not facing straight up, even though I accounted for that.

I could fix these by adding vector offsets for each direction and size, but I’m trying to make a universal version.

Portal Light.blend (923.7 KB)

You can get some insights from this free material:

1 Like

I had a look at a parallax texture but it just looks like a plate of spaghetti to me. Do you have a link to the one you mentioned?

I think I just have something like normalization missing, correcting the incoming vector or something.

2 Likes