Search Unity

Light Probes in Gamma Space

Discussion in 'Shaders' started by popMark, May 3, 2018.

  1. popMark

    popMark

    Joined:
    Apr 14, 2013
    Posts:
    114
    So this is a problem I've encountered a while back and has reared its head once again, Light Probes are too bright in Gamma Space.

    Last time was about in 5.3 and I had to modify one of the .cginc files to fix it which was a pain, now I'm having the same problem in 2017.3.1f1 and I'd like a different solution.

    I found this awesome script by @kemalakay for adjusting probe intensity and I want to use it to modify the probes intensity to account for the gamma space mismatch but naively applying gamma correction to each value doesn't seem to be the way. Any ideas if/how the probes can be fixed this way?

    https://github.com/kemalakay/lightprobes
     
  2. popMark

    popMark

    Joined:
    Apr 14, 2013
    Posts:
    114
    Actually I'm not convinced this is the problem any more, probe affected objects that are not in direct light look correct, only parts that are in direct light seem over bright, dropping my directional lights intensity from 1 to 0.45 after baking (Baked Global Illumination in Subtractive mode) seems to give me the right values