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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Resolved 2D Sprite not receiving shadows

Discussion in 'Universal Render Pipeline' started by PaulKhill, Nov 18, 2020.

  1. PaulKhill

    PaulKhill

    Joined:
    Jul 30, 2020
    Posts:
    15
    Hello everyone,
    I'm trying to have my sprites receive shadows. Now it's a special one, so bear with me :

    I create the global layout of the level using Grids. I then generated shadow casters using this bad boy (works fine, as seen in that screen).
    upload_2020-11-18_12-51-48.png

    Now I try to populate my levels with sprites that aren't to be alined with the grid. But as you can see, they don't receive the shadow casted by the ceiling, when the background walls are.

    Here are things I've explored :
    - Setting up Receive Shadow throught the Debug options on my sprite
    - Making sure my sprite and the background (that are receiving the shadows) are on the same sorting layer & same order in layer, and same Rendering Layer
    - That my lights and ceiling cast shadows (which they deo, just partly)

    I feel I'm missing something super simple... What is ?
    Thanks in advance !
     
  2. PaulKhill

    PaulKhill

    Joined:
    Jul 30, 2020
    Posts:
    15
    Okay, eventually fixed it, I used the Sprite-Lit-Default material from URP instead of the default Material.