#2d outline shader outside of sprite
8 messages · Page 1 of 1 (latest)
ok I found https://github.com/theseatoad/bevy-simple-2d-outline/blob/main/assets/shaders/outline_material.wgsl which is a good starting point
2d outline shader outside of sprite
I now have a working outline shader, but my issue is that the shader cannot draw outisde the sprite image, what is the best way of workarounding this ?
Did you find a workaround?
when creating the Mesh, I inflate the mesh size by the number of pixels the outline should take, and then I had to adapt the outline shader to account for the extra padding. I'm not a big fa of my solution, but it works
Thanks!
@upbeat tide Hi do you still have the code for this outline?