Is this even possible? (452562)

Hi there

I have a rather weird question that I was wondering; I have an extra camera in my scene and this camera is set to render to a texture. Now in my game world I also have some specific models. When walking around with my normal camera I only want to render their shadow, not the model itself. When I look at the rendered texture though I would like the model to be rendered there.

I got this idea about a horror game where you have to walk around with a camera to view ghosts, or else you will only see their shadow :slight_smile:

Alternatively I could also go with a route where the ghost is only rendered on one camera but not the other. Is this possible to achieve?

yes, you can use the culling mask of the camera to render specific layers.
you would also need to render the shadows without the models. This is also possible: http://forum.unity3d.com/threads/79560-CullingMask-a-layer-but-still-see-it-s-shadows

Seems to be exactly what I’m looking for, thank you very much! It’s pretty incredible all the things you can do in Unity…