Search Unity

Alpha of billboard particles

Discussion in 'Shaders' started by tarrabass, Feb 28, 2017.

  1. tarrabass

    tarrabass

    Joined:
    Jun 4, 2015
    Posts:
    26
    Hi Nice Unity People,
    I tried to do a billboard particles system using sprite particles.
    i need the alpha around the particles to make it nice and smooth.
    but the alpha turn in black as you can see on the screenshot >>
    i use a psd files with alpha channel,
    the frangement shader look as that >>
    float4 FS_Main(FS_INPUT input) : COLOR
    {
    return _SpriteTex.Sample(sampler_SpriteTex, input.tex0) * input.color;
    }
    Any Idea ?

    bilboard1.png
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,348