Search Unity

Question Render texture seems so much white in Android build

Discussion in 'Editor & General Support' started by Extrys, Oct 16, 2022.

  1. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    upload_2022-10-16_21-56-42.jpeg
    You Can see here, this render texture is using Unlit material, and on pc it looks good

    This is how it should look and how looks on PC upload_2022-10-16_21-59-34.png


    These are the settings for the render texture
    upload_2022-10-16_22-1-44.png

    But i dont even know what to look at to see the problem i tried changing and trying all different modes


    Im using URP 8.4, and Unity 2020.1.0f1 (i dont update because of the current unity performance problem with quest on newer versions, so this is not an option for me)


    if someone can give some insight about this it would be amazing, thanks!
     
  2. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    I have been investigating and maybe its something to do with sRGB to linear conversions or something like
    i will try to do that conversion manually maybe it just doesnt happen on android?
     
  3. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    Ok Confirmed, i wrote a shader that powers the color to 2.2
    and now the color coincidence is exact!
    so seems to be the linear conversion
    the render texture is like in sRGB and doesnt convert to RGB
    But i dont know how to force it to do so autimatically


    As the shader is not the solution to my problem, because depending on the device the texture is different, i had to make simple job for converting the tecture to sRGB to linear only on android, and also while on android using that shader only when doing the screenshot
     
    Last edited: Oct 17, 2022