Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Render only shadow

Discussion in 'Universal Render Pipeline' started by lordubik, Oct 8, 2021.

  1. lordubik

    lordubik

    Joined:
    Feb 18, 2013
    Posts:
    141
    Hi, we have draw a shadow for a sprite with URP and cast it in a mesh 3d.
    Is it possible draw only the shadow and remove the object 3d from scene? because our background is a sprite 2d.

    Thanks a lot for help!

    Stefano
     

    Attached Files:

  2. lordubik

    lordubik

    Joined:
    Feb 18, 2013
    Posts:
    141
    nothing? :oops:
     
  3. PutridEx

    PutridEx

    Joined:
    Feb 3, 2021
    Posts:
    1,123
    In your mesh inspector there should be a 'Cast Shadows" you can set it to Shadows Only. so the 3d mesh will be invisible except or the shadows it casts.
     
  4. lordubik

    lordubik

    Joined:
    Feb 18, 2013
    Posts:
    141
    Thanks @PutridEx for answer, but we need that who recieved the shadow must be invisible.
     
  5. two7two

    two7two

    Joined:
    Aug 3, 2023
    Posts:
    3
    Hi, I'm also looking for an answer to this question, did I find the answer?
     
  6. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    637