Shadow Casting on Tiles
Shadow casting is not supported the curent way we do tiles. We would be required to cast shadows on transparent surfaces above the tiles to get the desired effect. This is because the tiles are really isometric 2D images perpendicular to the camera.
I tried 2 public shaders out that said they produced the desired result but they seemed to be outdated and not supported any more.
Update
I got this to the point where the tiles are flat and skewed out in a way that they look correct form the cameras perspective. To do this I just changed the hight based on the camera angle using the following model:
This is the result:
Problem now is that I still cant cast shadows onto the sprite renderer. There is an option in the inspector to cast shadows onto a sprite rendere but it doesnt seem to work. Online people suggest using a plane instead. At this point I wonder if we should just use a simple tile 3D object.
Add new comment