Hey Hey,
i know there are some more threads about this all over main portals but none really matched my needs…
I am trying to stream a cameras view, which sees objects and shadows but not the surface the shadow receives, to a RenderTexture.
To get a shadow on a transparent surface, i found several working shaders like this (Unity3d Vuforia AR Shadows tutorial - YouTube)
The RenderTexture is supposed to be on a transparent surface as well so it only shows the objects and their shadows.
The Problem is, that the receiving plane doesn’t show the shadow and i can’t see why…
I use this shader to create a material which only shows shadows and apply transparency to rest of the area. Create a new shader and copy the below code and compile. Than change the material from Standard to FX>MatteShadow
@maechtigerhoros @neosca
Hello,
do I understand correctly that the subject of the question (and answer) is something in 3D graphics commonly called as matte shadow?
I can reccomend the free shader from Unity guy Keigiro Takahashi, which allows to adjust also the color and transparency of the shadows:
It has however the same drawback as the one provided by Neosca - it does not work against skyboxes - only against the solid color or another object (plane - floor, wall).
Unfortunately it seems to be caused by Unity design itself