Search Unity

Need help with particle trails shader

Discussion in 'General Graphics' started by konsic, Mar 23, 2019.

  1. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    I want to make a particle trails which resemble to travelling light in optical cable.

    So cable is transparent in the ending points and light travels through it.

    I've come with texture but I don't know how to set up shader/material for the trail.

    HDRP particle shaders

    trail.jpg


    How it should look like

     
    Last edited: Mar 30, 2019
  2. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    Could someone you help me out?
     
  3. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    The Trails Module has a "Color over Trail" gradient that could be used to affect the color along the trail.
    For a shader, I'm not too familiar with HDRP or ShaderGraph, but I would hope there is an Additive option on the Unlit Master Node. I would try to use that.

    And a script that simulates + pauses the effect.
     
  4. kilik128

    kilik128

    Joined:
    Jul 15, 2013
    Posts:
    909
    any way to get solotion about trail shader in hdrp please ?
     
  5. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    A solution to what problem? Please post a new thread with details if you have a problem you’d like help with - this thread is about a specific use case as shown in the user’s picture.
     
  6. kilik128

    kilik128

    Joined:
    Jul 15, 2013
    Posts:
    909
    thank's i use legacy at this time it's work