Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

What property of a shader do I need for the line renderer fade to work?

Discussion in 'Shaders' started by James15478, Jul 19, 2019.

  1. James15478

    James15478

    Joined:
    Apr 2, 2013
    Posts:
    57
    I'd like to create a shader where the line renderer component can fade it, which is built into the line renderer component, but I can't figure where in a custom shader how it would access that alpha property. Help?
    upload_2019-7-19_11-58-23.png
     
  2. Phantom_X

    Phantom_X

    Joined:
    Jul 11, 2013
    Posts:
    269
    this only changes the vertex color, so any shaders that multiply the final alpha by the vertex alpha will do. Try a particles shader for example.
     
unityunity