Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.