Search Unity

How to make 2D sprites be affected by 3D lighting in URP?

Discussion in '2D' started by WitheringTreant, Apr 11, 2021.

  1. WitheringTreant

    WitheringTreant

    Joined:
    May 13, 2018
    Posts:
    4
    I'm working on 3D game and I converted my project to URP. Everything works fine expect sprites that previously were 'Sprite/Diffuse' so they were lit by 3D lights (kind of Doom style, 2D elements in 3D world, always facing you). But now 'Sprite/Diffuse' shader is not supported in URP, it converted my materials to use 'Universal Render Pipeline/Simple Lit' Shader which does not work with sprites, it's for textures. There is 'Universal Render Pipeline/2D/Sprite-Lit-Default' but it's only for using 2D Lights.

    How do I make sprites littable by 3D lights again in URP?
     
  2. japhib

    japhib

    Joined:
    May 26, 2017
    Posts:
    65