Sprite Crossfade Shader Help
Posted: Tue Oct 09, 2018 6:40 am
Hello,
I'm a bit of a noobie to shaders and so far, I setup this shader that lets me crossfade between two sprites using the Sprite Template:
The crossfading part works just fine, but I found that the main texture of the sprite (from the Template Parameters) is masking the sub texture, so a part of it is cut off.
I offset the sub texture a bit to show this more clearly:
You can see the masking of the sprite on the left side. My question is, how do I fix that? Is there a way to just overlay the sub texture on top, or do I need to mess with UVs or something? Thanks.
I'm a bit of a noobie to shaders and so far, I setup this shader that lets me crossfade between two sprites using the Sprite Template:
The crossfading part works just fine, but I found that the main texture of the sprite (from the Template Parameters) is masking the sub texture, so a part of it is cut off.
I offset the sub texture a bit to show this more clearly:
You can see the masking of the sprite on the left side. My question is, how do I fix that? Is there a way to just overlay the sub texture on top, or do I need to mess with UVs or something? Thanks.