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

no good additive shader in URP for particles?

Discussion in 'Universal Render Pipeline' started by jsunandmax, Mar 16, 2020.

  1. jsunandmax

    jsunandmax

    Joined:
    Jan 12, 2013
    Posts:
    17
    Hello, in URP, i'm using the Shader URP/Particles/Unlit in 2109.3.1f1

    No matter what my combination of Blending Mode and Color Mode settings, I'm unable to get a simple particle effect to do proper additive with a texture....

    I'm using URP/Particles/Unlit

    Blending Mode Additive, i'm finally getting the 'stacking' effect, but it wont show textures.....

    https://ibb.co/kQrHbYJ

    Is anyone else seeing this in URP? Any help greatly appreciated!

    thanks!
     
    Filip8429 likes this.
  2. weiping-toh

    weiping-toh

    Joined:
    Sep 8, 2015
    Posts:
    186
    The default shaders that URP provides only allows normal blending. I discovered this upon inspection of the ShaderGUI source codes. No matter what setting you amend on the inspector. It always sets "Blend SrcAlpha OneMinusSrcAlpha" for the blend mode in the shader. What the "additive" blend meant was pre-multiply additive which is a different additive effect from the additive that was done in the default pipeline shaders.
     
  3. liiir1985

    liiir1985

    Joined:
    Jul 30, 2014
    Posts:
    147
    Transparent unlit shader from builtin pipeline will work without any problem, you can safely use them if you are not able to achieve the effect you want with the shader urp provided

    Besides, I have no problem with setting Blend mode to additive and Color mode to multiply to get the right additive effect in particle system
     
    Last edited: Mar 17, 2020
  4. j00hi

    j00hi

    Joined:
    Nov 18, 2012
    Posts:
    72
  5. bigbrainz

    bigbrainz

    Joined:
    Jul 21, 2015
    Posts:
    175
    We also need this.
     
    BadSeedProductions likes this.
  6. BadSeedProductions

    BadSeedProductions

    Joined:
    Dec 26, 2014
    Posts:
    144
    What happens when using the legacy additives?
     
  7. j00hi

    j00hi

    Joined:
    Nov 18, 2012
    Posts:
    72
    Do you mean legacy shaders that do additive blending? Legacy shaders don't work with the URP, as far as I understand.
     
  8. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    5,994
    ^ Some legacy shaders do, for example additive particles from Unity 4. Anything using surface shader don't.

    If you want to make shaders with blend control and keep your sanity you buy Amplify Shader Editor.