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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Resolved Vertex Color in HDR

Discussion in 'Shader Graph' started by argibaltzi, Oct 12, 2023.

  1. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    216
    Hello
    I want to pass an HDR color through the vertex color. Eventually i want to set it as the Emissive color in shadergraph. Is this possible?

    Thanks!
     
  2. BenCloward

    BenCloward

    Unity Technologies

    Joined:
    Jul 15, 2021
    Posts:
    93
    No but yes. The vertex color channel doesn't have enough precision to store HDR color data. However, you might be able to pack HDR color data into the second and third UV channels and then unpack that data in the shader.
     
    argibaltzi and adamgolden like this.
  3. argibaltzi

    argibaltzi

    Joined:
    Nov 13, 2014
    Posts:
    216
    Ok thanks ben, i will give it a go