Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Fade out object from one side to another

Discussion in 'Shaders' started by Gunzes, Mar 11, 2019.

  1. Gunzes

    Gunzes

    Joined:
    Nov 3, 2018
    Posts:
    5
    Hi, i wanted to create custom shader that will fade out /in an object from one side to another. I know that i could do this with gradient and object uv coordinates, but mesh should be specially wrapped for this. Is there another way to do this? Lets say it the object is a ship and i want to fade it out from front to back, despite its rotation in world position. Any suggestions? I dont even know where to start. Thanks in advance!
     
  2. tmcthee

    tmcthee

    Joined:
    Mar 8, 2013
    Posts:
    119