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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Lightmapper uses linear color mapping when set to gamma.

Discussion in 'Global Illumination' started by Hjeldnes, Jun 27, 2015.

  1. Hjeldnes

    Hjeldnes

    Joined:
    Jul 22, 2012
    Posts:
    116
    We are working on a mobile game, so we are stuck with gamma color space. While creating a custom shader, I noticed that realtime lights in gamma mode did not match the lightmap at all.

    So, I did a few tests (with standard material), and got this: gamma-linear-bakedlights.jpg

    All light values are the same, I just changed from standalone to mobile, cleared and rebaked.
    The Sphere is lit by lightprobes. It looks different in gamma and linear(it seems like the light color is gamma adjusted also), but the light wraps too far around. I've seen this in other posts, so I guess it has been reported before.



    Kjetil
     
    Last edited: Jun 27, 2015