Select Frame Scale

Hi! :slight_smile:

I have a question about shaders. I have a select frame that consists of a simple box. When I want to select something I scale the box at runtime.

The problem is that there is a texture stretch when I scale the box.

Is there a way to compensate for this in ShaderGraph?

So far, the texture with frame seems to me to be the best option, as I can also use the emission here. I have also looked at other outline shader tutorials like this one:

The problem is that only the outer lines are present and not all edges.

I don’t really understand what your actual question is, but this may be informative.

Sorry, probably comes from the translation.

What I would like to do would be “Edge Detection” according to your link, but with a texture.

My problem is that when I change the body to runtime in the scaling the texture is stretched.
I would like to prevent this.

I am dependent on Shader Graph because I can’t write shaders myself.