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 Spot Light intensity issue

Discussion in 'Universal Render Pipeline' started by adamgolden, Sep 13, 2020.

  1. adamgolden

    adamgolden

    Joined:
    Jun 17, 2019
    Posts:
    1,518
    I've just recently created my first night-time scene. I'm struggling to get a spot light to brighten objects the way I'd like within the given range. To illustrate, here's one just above the surface of a plane, with an intensity of 1 and a range of 10.
    urp_spotlight_0.jpg

    Notice that despite the range being 10, there's almost no [apparent] light applied except right near the source, out to a distance of maybe 2-3 at most. Only objects that are really close are noticeably illuminated.

    So I increase the Intensity, and that works for the range issue - except that the intensity has to be so high to reach that range that everything near the light gets entirely washed out:

    urp_spotlight_1.jpg

    I'd like to have this light work something like the 2nd image but NOT wash everything out. I've searched around and seen there are shader-based things to try and there's a way to set Lightmapper fall-off, but ..am I overthinking this? Is there a simple solution? Maybe even just a way of clamping how much light can be applied to anything, even if that's globally (so the intensity could be set to 1000 like that to get the range I'd like, but it wouldn't wash anything out / make everything near it in the scene an almost solid white).

    For example if this were a flashlight in real life - everything in the direction it's pointed is being illuminated to whatever distance based on the intensity but it never washes out any details.

    I'd appreciate any insight. I'm currently using URP 10.1.0-preview.2.
     
  2. niuage

    niuage

    Joined:
    Nov 17, 2019
    Posts:
    93
    For me, spot lights work better, as they do have a range, and you can control also the angle at which they point toward the floor to prevent this bright spot. I'd be happy personally if they point lights just behaved like spot lights, but 360.degrees.
     
  3. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    Was this ever addressed? I was using URP and spot lights for car headlights and had this issue. Either the lights don't reach far enough for usable car headlights or everything close is way too bright.