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.

Feature Request Bounded directional lights.

Discussion in 'Universal Render Pipeline' started by RichardGoesToNightSchool, Jun 23, 2022.

  1. RichardGoesToNightSchool

    RichardGoesToNightSchool

    Joined:
    Dec 9, 2020
    Posts:
    27
    We're trying to make a game with impossible doorways to different worlds that have different lighting conditions.

    As far as I am aware there are two ways to have different meshes affected by different lights.

    A) Build geometry that physically occuludes the directional light (this means your light has to cast shadows)
    B) Use light layers to control what lights affect what surfaces (using layers has knock on effects to other systems and does not scale well)

    It would be amazing if directional lights had a bounds or a radius of effect.
    If I recall correctly hdrp has box spotlights that work a bit like this.