- Home /
How would you achieve an outline effect around your tiles?
It should seperate the foreground from the background (like in the pictures). I was thinking maybe a shader, or representing the outline itself via objects. Anyone have a straightforward approach?
Answer by fabianschmidt2512 · Aug 04, 2020 at 09:59 AM
I have the same issue but found no answer yet!
If you're still wondering, I attached a simple but maybe not perfect way to do this!
Answer by zebleck · Aug 12, 2020 at 06:40 PM
One way would be to add a shadow texture to every solid tile prefab like this:
This should render between the solid and background tiles and looks like this:
But you can ofcourse play with the gradient and resolution of the shadow texture to get the result you want. Using a shader is probably a better idea, but this is what I came up with!