- Home /
Rendering sprites as meshes
I've got my scene set up in a 2.5d space using sprites. I want the sprites to cast shadows but from what I understand the sprite renderer cannot cast shadows. Is there as easy way to convert the sprites to meshes while maintaining their dimensions? I've tried applying them to quads but their dimensions are skewed to the dimensions of the quads. Thanks!
What sprite library are you using? The built-in unity 4.3 sprites?
Answer by Chris_Dlala · Jun 04, 2014 at 08:21 AM
Hi, I think it may be possible using a SpriteRenderer but I can imagine you will need a custom shader (and implementation). With perspective camera and Cutout shader (see here) you should be able to get shadows but I have not tested anything myself. I have just found this which may be helpful. =)
Your answer
Follow this Question
Related Questions
Sprite Shading 1 Answer
Does SetPropertyBlock work with new 2D SpriteRenderer? 1 Answer
Particle System Sorting Layer Refuses To Be Assigned 1 Answer
Sprites warped/not sliced on android builds, fine in editor 0 Answers
Fading Issue 2 Answers