I need to fill a weapon bag with foam material.
This is what it should look lik:
The material in the upper part of the bag looks like this:
I'm using HDRP.
How could I do this?
Edit: I have played around with Parallax Occlusion mapping, and I got this result.
Edit2: I am not sure if I use the Pixel Displacement as it has been suggested to me.
Also, I'm not sure if I use it the correct way:
I have created a Height map and put it into the Height map slot. This doesn't create any effect. I have to put the same map into the Base map slot in order to see the effect. If I put a black image into the Base map slot or if I choose Black as the Base color, no effect is visible.
I don't understand why this is so. I think even if my Base map is black, the Shader has pixels that it can move.
Edit 3: It was suggested that I should use a normal map. This doesn't look at all what I expected. The normal map was created from the Height map using an online tool:
By Philipp's answer I found out that the normal map alone is not enough.