Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline shader: sprite.flip_h support #4

Open
SimonasLetukas opened this issue Mar 22, 2024 · 0 comments
Open

Outline shader: sprite.flip_h support #4

SimonasLetukas opened this issue Mar 22, 2024 · 0 comments

Comments

@SimonasLetukas
Copy link

SimonasLetukas commented Mar 22, 2024

Hi,

outline.shader is amazing! Thanks so much for all your work. I'm writing here with the hope that you could help me troubleshoot and throw ideas how to make this shader work when sprite.flip_h is set to true.

What currently happens is nicely described in https://www.reddit.com/r/godot/comments/rxdbuc/bug_shader_material_applied_to_animatedsprite/

I've tried doing the division here as described:
VERTEX += uv / float(intensity);

Flipping the sprite using sprite.flip_h = true works, but then the outline is not added outside of the sprite (and generally looks weird):
image

Is there a way to fiddle around with this shader to make it work with sprite.flip_h while still being able to have the outline outside of the sprite frame?

Any help will be very much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant