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. Dismiss Notice

Black and white lightmap

Discussion in 'Global Illumination' started by Rikk The Gaijin, Mar 26, 2015.

  1. Rikk The Gaijin

    Rikk The Gaijin

    Joined:
    Mar 4, 2015
    Posts:
    7
    I've generated some Lightmap, and if I click on the Litghmaps tab in the Lighting inspector, I can see a black and white texture (intensity), and a normal texture (directionality).
    My question is: where are the light colors stored?
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,366
    In the Intensity texture.
     
  3. Rikk The Gaijin

    Rikk The Gaijin

    Joined:
    Mar 4, 2015
    Posts:
    7
    How is the color stored in a black and white texture?
     
  4. protopop

    protopop

    Joined:
    May 19, 2009
    Posts:
    1,541
    I use single lightmaps (non directional) and the color is stored in the black and white light map (intensity like KEngelsoft said). For example, my sun is a bit yellow and my lightmap is actually a bit yellow and black. I tested this by making part of the lightmap pure white instead of yellowish and the terrain changed accordingly. I also threw on a splat of red to test and that part of the terrain became lit red. (there is probably some cool possibilities here)