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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Resolved Encode RGB color in 2 channels

Discussion in 'Shader Graph' started by R4vakk, Dec 15, 2021.

  1. R4vakk

    R4vakk

    Joined:
    Oct 10, 2015
    Posts:
    17
    Hi. After encoding various data into a texture, I'm left with only 2 channels to store a color for use in the shader. Some precision loss is fine, but I'm notsure how to go about it. I tried adapting Decode/EncodeFloatRGBA, but I'm having issues.
    If someone has an idea, I'd love to know!
    Cheers.
     
    Last edited: Dec 18, 2021
  2. R4vakk

    R4vakk

    Joined:
    Oct 10, 2015
    Posts:
    17