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

Give everything a little bit of light

Discussion in 'General Graphics' started by grimofdoom, Aug 11, 2020.

  1. grimofdoom

    grimofdoom

    Joined:
    Sep 6, 2013
    Posts:
    168
    I am working on a space traveling game, and one annoying issue is that I do not know how to make the scene light up everything to a minimum (Say if a pixel on a shader had a max light of 1, give everything a minimum of 0.1 so they are not just pure black). It is technically more realistic as it is now- but I prefer a bit more on the visuals than keeping 100% realistic. Right now, I am using a single sun light source, although later will be replaced with literal suns as light source/s. I have a skybox made unlit graph shader made to create the somewhat passable infinite stars. How can I fix this lighting for everything?
     

    Attached Files:

  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,238
    You can try setting the ambient color to a solid color, or use a non-important directional light as a fill.
     
  3. grimofdoom

    grimofdoom

    Joined:
    Sep 6, 2013
    Posts:
    168
    I have read about 'ambient light', but can never find it. And using multiple directional lights to fill the scene creates halos on the planets (Doesn't help that they are more shiny than needed- but future problem I know how to fix)
     
  4. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,068
    @grimofdoom
    Maybe a clever creative use of some light probes, might help create that effect here. But don't use to many though, otherwise they'll use up a good bit of resources.
     
  5. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,238
    Window > Rendering > Lighting Settings > Environment Lighting
    Change "Source" to "Color", and set a color value.
     
    grimofdoom likes this.