- Home /
can sprites be occluded by semitransparent pixels?
So I have a 2D character composed out of a couple of different sprites stacked on top of each other with different z positions. What I'd like to do is have parts of the body sprite be semi transparent (and have the background shown through the body) while still occluding the parts of the character that is on the other side.
It seems doable to me but I'm not very familiar with shaders so there could be some limitations that I'm not aware of. One sollution might be to have a shader that is occluded by the alpha channel of my sprite perhaps?
here is an example of what I have where you can clearly see the shield on the other side of his body when he's sprinting.
On second thought I could probably get the same results if I were able to tint the sprites with a texture ins$$anonymous$$d of just one single color, and manipulate that texture to get some movement in it.
Any thoughts on that?
Your answer
![](https://koobas.hobune.stream/wayback/20220613141937im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Making a character appear through 1 layer of objects but not 2 or more 0 Answers
Allow 2D sprite to receive light from any direction and show on both sides 0 Answers
2.5D billboard shader and frustum culling problem 2 Answers
WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Setting to default shader. 0 Answers
Trying to have sprites affected by fog without having to use default/diffuse shader. 3 Answers