Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

webcam and shadows

Discussion in 'Shaders' started by wijdoendingen, Jun 28, 2015.

  1. wijdoendingen

    wijdoendingen

    Joined:
    May 23, 2015
    Posts:
    5
    Hi everyone,

    I have red a lot of old posts about shadow planes, but can't seem to find the right answer yet. I have a webcam material setup in my scene witch is attached to my main camera.
    I have this sphere that I want to make appear traveling along the road. For this effect to work I would need to have a shadow on the street. I can't seem to find any shaders that allow shadows but are also transparent (so you would still see the road).

    Does anybody how you would achieve this effect?

    Thank you very much in advance.

     
  2. Thomas-Mountainborn

    Thomas-Mountainborn

    Joined:
    Jun 11, 2015
    Posts:
    501
    You can't cast shadows on blended transparent objects (you can cast shadows on cut out transparency, but you won't see the shadow on the invisible parts). You could however fake the effect with a blob shadow, by having a projector project onto a transparent surface.