Search Unity

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:
    7
    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:
    230
    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.