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.

Question Is there a way to disable conversion of framebuffer to gamma space?

Discussion in 'Universal Render Pipeline' started by CaptainMosin, Dec 4, 2022.

  1. CaptainMosin

    CaptainMosin

    Joined:
    Apr 17, 2021
    Posts:
    4
    I am using URP 13.1.8 in Unity 2022.1 and I am trying to visualise some vector data by writing vector values mapped to [0, 1] range to colour.

    The pixel values in the resulting render are not what I expect, for example I expect a vector (0, 1, 0) to be rendered as RGB(0.5, 1, 0.5) but the actual pixel value is RGB(0.74, 1, 0.74).

    I believe this is caused by the conversion of the rendered image to gamma space. If I switch the colour space to gamma space I get the values I expect, however this takes a long time and also it seems to generate lots of unwanted extra data.

    Is there any way to disable the final conversion of the image to gamma space and just see the linear values?