0 votes

I found this shader and added it to my TextureProgress node, unfortunately I don't know much about shaders and don't know how to debug here.

The two issues are that I only want the shader to run on the under texture, you can see there is some alpha in the middle of the image due to inner-alpha of the progress texture. I would prefer to fix this in the node/shader instead of just removing the alpha section.

The other issue is parts of the shader are clipped off. I suppose that it is extending outside the bounds of the parent node and thus isn't shown, how can I fix that?

enter image description here

in Engine by (685 points)

1 Answer

0 votes
Best answer

Not sure the easiest way, but one way is to use a vertex shader to expand the sprite a little bit, then fill in the expanded room with the outline (as was done with this better outline shader). Not sure how to fix the inner-alpha problem.

by (685 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.