Search Unity

Rendertex => Tex2D conversion color loss

Discussion in 'General Graphics' started by topitsky, Jun 28, 2022.

  1. topitsky

    topitsky

    Joined:
    Jan 12, 2016
    Posts:
    100
    Hey,

    I've noticed that when I convert from RFLOAT32 => RFLOAT16 or RLOAT32=> RFLOAT32 everything works as supposed, there is no color loss, everything good.

    upload_2022-6-28_14-22-42.png

    But when I try to convert from RFLOAT16 => RFLOAT16, the target texture2d "loses" some of its colors, its like its darker than it should be.

    upload_2022-6-28_14-23-38.png

    Is there a specific reason for this, or is this a bug? I'm using 2021.3.2f1.

    upload_2022-6-28_14-22-19.png
     
  2. Azeew

    Azeew

    Joined:
    Jul 11, 2021
    Posts:
    49
    I might be talking bananas here, but have you tried Graphics.CopyTexture? I haven't tried it with render textures, but it should work, I think?