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

URP and Ambient Lighting

Discussion in 'AR' started by Kholeslaw, May 28, 2020.

  1. Kholeslaw

    Kholeslaw

    Joined:
    May 7, 2013
    Posts:
    35
    I've switched my AR project over to using URP and now the LightEstimation script turns the lighting "off" (all objects are not lit) when run on device. I am using the LightEstimation script from the GIT repo.

    Android platform
    ARFoundation v3.1.0
    AR Subsystems v3.1.0
    ARCore v3.1.0
    ARKit v3.1.0

    AR Camera Manager component has Light Estimation set to "Ambient Intensity".
    The light also has the component UniversalAdditionalLightData on it.

    Does this work with URP? What could I be doing wrong?

    My second question is if I can alter the Ambient Intensity at runtime when using URP?
    I have been using RenderSettings.ambientIntensity successfully before switching to URP.

    I guess for now I just need to know if these things should work with URP on this version of ARF.

    thx!