Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

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:
    62
unityunity