So recently I decided to try vector displacement. I tried to make something simple, such as this shape. It's sort of a "gun shape", but I've ran into a problem.
I wanted to make an "extrusion" downwards in a square shape. So, I made a simple square mask, using the polar coordinates formula. The first 2 groups calculate angle and distance and the third one calculates the shape.
Then, I added one Z mask, in order to remove the square from the top face- so it only appears on the bottom.
After inverting it, so that it's white shape on black background, I plugged it into the Z input of the combine XYZ node and then the vector went into a Vector math node, set to Add, which then goes into the vector displacement node.
The problem is, that in order to get the cube to be thinner(smaller on X and Z) I have to multiply it before. That causes my new shape to also be squashed on one side.
How can I have my cube to be deformed, but at the same time to have the shape follow the mask?