Search Unity

Simple transparent shader for newbie

Discussion in 'Shaders' started by SpiralConDave, Feb 10, 2016.

  1. SpiralConDave

    SpiralConDave

    Joined:
    Dec 29, 2014
    Posts:
    37
    I'm looking for a shader which simply takes a texture (or sprite) and gives me a Range from 0 to 1 which is the Opacity (or transparency, don't care). It would use that slider's value either AS the alpha per-pixel, or multiply the pixel's alpha by that amount.

    A couple years ago I hacked something like this, but apparently the syntax has changed? Any help greatly appreciated.