Search Unity

particle additive soft light depends

Discussion in 'Shaders' started by ghiboz, Nov 20, 2017.

  1. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    hi all!
    I'm searching a shader for my particles (smoke) like the particle additive soft but that is influenced by the light..
    the shader above is good, but for example, a white smoke.. is white at midday like at midnight.. and I wish at midnight that is 'blacky'

    have you got any ideas about this??

    I'm on deferred / hdr / linear on windows desktop
    thanks in advance!
     
    Last edited: Nov 23, 2017
  2. DouglasPotesta

    DouglasPotesta

    Joined:
    Nov 6, 2014
    Posts:
    109
    Do you need the smoke to have thickness, in other words volumetric? Or is it okay if the color is adjusted strictly based on light color/light intensity?
     
  3. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465
    thanks @DouglasPotesta 1 for me is ok have the color adjusted by the light and the particle be 'soft'
     
  4. DouglasPotesta

    DouglasPotesta

    Joined:
    Nov 6, 2014
    Posts:
    109
    Here is a really simple one. I made it multiply because you don't want to additivley blend for smoke, it causes the smoke to get brighter, when it should be darker.
     

    Attached Files:

  5. ghiboz

    ghiboz

    Joined:
    Sep 7, 2012
    Posts:
    465