Hi everyone! I’m studying Shader Graph currently. I wanted to know, if it’s possible to go outside the texture’s border?
Let’s say I have a 16x16 pixels pic and I want to create the outline using the shader. To achieve this, I move the pic’s copy 1 pixel sideways and fill it with the color, but the problem is it can’t be moved outside the border.
I understand that the solution would be to add empty space arounf the pic to make it let’s say 20x20 pixels. But maybe there is another way to do it inside shader graph.
Can easily be done in a graph by just scaling down the image slightly and just put the scaled down texture over top of a color. Does that make sense?
Sorry, I don’t know how to scale down the image in a graph
What I have
What I want, here I just increased resolution of the picture 32x32 to 36x36 by adding an empty space
This is what I had originally been thinking, but I am less certain that this is the desired effect after posting your image
This solution takes less texture samples, but likely wont work as well for crisp details like you are achieving.
As for scaling an image, I just mean scaling the uv chanel about the origin some amount like I am doing above.