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. Dismiss Notice

SimpleLit Particles in 2D Renderer?

Discussion in 'Universal Render Pipeline' started by CDF, Apr 28, 2020.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,282
    I'm guessing the SimpleLit Particle shader that comes with URP is incompatible with the 2D renderer?
    When using this shader on a particle system it is not affected by light and Particle Systems color/alpha has no effect on the final output.

    Will 2D Renderer introduce particle shaders that support the 2D renderer/lighting system eventually?
    Or is this a known issue and being worked on?

    Left system is using 2D/Sprite-Lit-Default and looks correct.
    Right system is using Particles/Simple Lit

    particles_urp.png

    particles_urp_materials.png

    There is no combination of options I can find that results in "SimpleLit" applying particle color in the 2D renderer :(
     
    tonytopper likes this.
  2. SpiralCircus

    SpiralCircus

    Joined:
    Feb 1, 2014
    Posts:
    34
    I'd be interested in this feature too.
     
    tonytopper likes this.
  3. dlich

    dlich

    Joined:
    Apr 21, 2019
    Posts:
    11
    Faced the same issue myself. Hope we can get a solution soon...:(
     
    tonytopper likes this.
  4. kyuskoj

    kyuskoj

    Joined:
    Aug 28, 2013
    Posts:
    52
    Any updates here?
     
    tonytopper likes this.
  5. Lo-renzo

    Lo-renzo

    Joined:
    Apr 8, 2018
    Posts:
    1,319
    Yes, you can straightforwardly make a shader/material in Shader Graph starting from Sprite Lit and it should work.

    The Unity's tech demo Lost Crypt showcases simple particles that do this, here:
    s - Copy.png
    VFX Graph, if I recall correctly, only works with Unlit and only in newer versions of the 2D Renderer.
     
    tonytopper and kyuskoj like this.
  6. SunnysideGames

    SunnysideGames

    Joined:
    May 14, 2014
    Posts:
    23
    In case anyone's still wondering, sprite lit shader with the "Renderer2D" renderer in URP doesn't work with particules because they need an input texture named "_BaseMap".

    If you want to make the sprite lit shader work with particules in URP, you have to duplicate the sprite shader and replace all _MainTex occurence in the file with _BaseMap, and it should work !

    Cheers
     
    tonytopper likes this.