Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Can you set vertex color from shader graph?

Discussion in 'Shader Graph' started by Sam3million, Apr 25, 2022.

  1. Sam3million

    Sam3million

    Joined:
    Mar 21, 2018
    Posts:
    4
    There doesn't appear to be an option to set vertex color in shader graph, am I missing something?
    upload_2022-4-25_0-54-14.png


    I ask this because I am trying to convert a surface shader I had written to shader graph so it will work with HDRP.

    Any help is appreciated!
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,256
  3. Sam3million

    Sam3million

    Joined:
    Mar 21, 2018
    Posts:
    4
  4. Smileys

    Smileys

    Joined:
    Feb 27, 2014
    Posts:
    81
    Sorry for bringing this up again - but i want to set Vertex Colors as well and it seems like i may misunderstand the whole concept of the interpolators. What i want is old school vertex lightning on some of my objects. I want to have this smooth color change between two vertices just like if i would paint the color in iE Blender and then use the Vertex Color node of Shader Graph. Is there a way to achieve this ?
     
    Leo_Wivhagen likes this.