Search Unity

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