You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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):
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!
The text was updated successfully, but these errors were encountered:
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 whensprite.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
![image](https://private-user-images.githubusercontent.com/4127189/316126962-81121f38-8d36-4801-8586-671e45feb4fa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwOTIzMzgsIm5iZiI6MTcyNDA5MjAzOCwicGF0aCI6Ii80MTI3MTg5LzMxNjEyNjk2Mi04MTEyMWYzOC04ZDM2LTQ4MDEtODU4Ni02NzFlNDVmZWI0ZmEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTlUMTgyNzE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzIyODFhYzQ5YThiODMyYzgxOTUzMTIwNDI2N2RhODViZTYyZWQ5YTZkNjFmODZiMzk3NTIxMTg0MTgxOGEyMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.bVxAdxs9QqHx-hV3-WiYhGQDfn4EkCTlAb8i1zCAaiU)
sprite.flip_h = true
works, but then the outline is not added outside of the sprite (and generally looks weird):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!
The text was updated successfully, but these errors were encountered: