- Home /
Interaction between 3D objects with Fade / Transparent render mode materials and 2D Sprites
I've noticed that, when I have a 2D Sprite (using SpriteRenderer) behind a 3d object that has a Fade or Transparent type material, the 2D sprite will render completely in front of the material.
Say, if I have a glass panel with Transparent rendering mode and a blue color as diffuse texture with 50% opacity, any 3D object behind it will be visible but with a blue tint due to the glass in front of them (besides any other lightning effects and such).
But if I have a SpriteRenderer behind that glass, it will render as if the glass had 0% opacity, completely ignoring it - looking as if the sprite was in front of the glass, not behind it. This happens both with Sprites-Default material and with Sprites-Diffuse material.
I imagine that this is by design; SpriteRenderer isn't meant to interact with much of the lightning-based rendering, I guess. But is there some work around to make it work? Or would I need to use 3D Planes with cutout textures instead of Sprites?
Your answer
Follow this Question
Related Questions
Is there a way I can add drawing mechanic like in "line rider" for a 3D game? 0 Answers
Problems with shadow casting 0 Answers
Character vibrates while moving 30fps 2 Answers
Oblique/Cabinet-perspectibve pixel art like Tibia and Ultima but with height 0 Answers
Mouse Click Teleportation with 2.5d game 0 Answers