Parallax interior mapping with Shader Graph

Hi everyone,

I’ve been trying to create a Parallax Effect like this x.com within my Unity scene using the Shader Graph. It’s working fine however the only problem is that the Parallax Effect is still working based on the Word Position rather than the object as shown on the link. Is there a way to solve this using the Shader Graph?

Thanks for the help





2 Likes

It should be noted the interior mapping example you posted doesn’t use cubemaps. It uses a 2D texture atlas, one I created and posted the example shader code for here:

It’s based off a technique used in SimCity 5, but for which working code was never shown, so most of those examples are built off of the above post. It also has example shader code for a cubemap based version of the effect which is what your code is attempting to recreate.

Obviously it’s not in node graph form, but it might help? I didn’t see anything jump out at me when looking quickly over what you posted above.

I’ve tried recreating your shader network based upon your screenshots. what kind of variables are each of your properties you’re inputting? also what values are you getting for 1 and 2?

Did you end up having any luck solving your problem?

Here is a HDRP 6.7.1 (Unity 2019.2) Shader Graph example that uses the shader code bgolus posted as an example.

Note: please upgrade to HDRP 6.7.1 or higher before importing.

4682822–441275–InteriorMapping_Unity_2019_2_HDRP_6_7_1.unitypackage (54.8 KB)

7 Likes

say, how about creating a repo with example for shader graphs just like this one? it could be useful for cataloguing

1 Like