Search Unity

how to create shadow catcher on unity ?

Discussion in 'General Discussion' started by Dnncbxbcbx, Jun 21, 2021.

  1. Dnncbxbcbx

    Dnncbxbcbx

    Joined:
    Jun 1, 2021
    Posts:
    3
    hey unity pros . how can i make shadow catcher in unity ? i.e i want the shadow of an object to project on a transparent cube and the cube should be invisible on my scene.

    (like we use hdri backplates on blender and make a shadow catcher to get shadows in to . i want the same in unity )


    i have no coding skills , hope you may say the easiest way.
     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,776
    Just to be aware, you will not make any game in Unit, with 0 programming skills.
     
    koirat likes this.
  3. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,569
    As far as I'm aware, you actually can't do that easily, because a shadow is not an object, but instead an absence of light.

    This can be somewhat solved by writing a custom shader. Which requires some programming skills...

    This is related:
    https://forum.unity.com/threads/how-to-cast-a-shadow-onto-an-transparent-quad-plane.546558/
    https://gist.github.com/wtekteam/3f87bf54718538365444