Search Unity

Question How to show Gradient in Material parameter

Discussion in 'Shader Graph' started by Rachan, Feb 16, 2024.

  1. Rachan

    Rachan

    Joined:
    Dec 3, 2012
    Posts:
    781


    Hi there!

    I using Shader graph and I have a gradient color in shader parameter like this
    But it cannot show in Material Parameter as MainTex or Color

    I don't know why...

    anyone? Thanks!
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,313
    This is simply not supported, even though it could be.
    Gradient is neither color or texture, it's special struct.
    In any case if you need to expose it then you would need to use texture instead.