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

Made a small change so it would work with Multiple Sprite textures. #5

Open
tiagoacarvalho opened this issue Oct 13, 2022 · 1 comment

Comments

@tiagoacarvalho
Copy link

So I went directly into the problem of "Radial, yes, but centered where?" when I tried to use this with a Multiple-type Sprite (aka a Texture that is a SpriteSheet, containing multiple sprites.)

The shader produces the radial fill from the center of the whole spritesheet, not from the center of the specific sprite.

My work around was to add Position X and Position Y, and offset the center. A small change for a small gain. Here is the code, up to you whether to push it or not.

And I apologize in advance for having modified your code without asking.

Modified shader:
RadialFill.zip

@tiagoacarvalho
Copy link
Author

By multiple sprite textures I meant sprite atlas.

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