How to make global lighting (and ambient lighting) in URP project?

Hi all, I’m new to Unity, I’m trying to figure out how to customize lighting in a URP project. Besides, English is not my native language, so sometimes it is difficult to find information even with a translator.

In my project there is a minibus (camper or house on wheels). The minibus is moving (not a static object). The sun is also moving (dynamic time of day change). I want to make the lighting inside the van depending on the lighting outside and the sunlight hitting the window. At least somewhat close to realistic.

What I have so far (I uploaded the video to drive google):

As you can see, the inside of the van is too bright even though no sunlight is hitting it. And the lighting doesn’t change at all, even if the sun shines directly through the window.

And this is what it looks like if you reduce envirinment lighting and environment reflections to make it darker in the shadows:

But it’s no good either. The sunlight doesn’t light up the van at all. It looks completely unnatural.

Maybe someone can tell me how to make normal lighting inside the van. Or point to a good tutorial suitable for my case. I would be grateful.

you may be interested in light/reflection probes or another type of global illumination or maybe even ambient occlusion

in hdrp you can use ssgi

But light probes only work with static objects and static light. Or am I wrong?
In all the tutorials for light probes I see that include static for objects.

nope, they can light dynamic objects. they’re the main solution for lighting dynamic objects in baked lighting.

Unity - Manual: Light Probes for moving objects (unity3d.com)
Unity - Manual: Move Light Probes at runtime (unity3d.com)

1 Like

I think you need to find a third-party solution because currently the GI in URP doesn’t support both dynamic lighting and moving objects.

However, I heard that you can still move “static” objects after the precomputation (visibility between objects) of Enlighten GI. It’s just that the GI may not look correct.

Note: I don’t recommend heavily relying on Enlighten since it’ll be removed in the future Unity versions.

Enlighten GI

Static Global Ambient Lighting:
9778470--1401987--Default.gif

Enlighten (static objects + dynamic lighting):
9778470--1401984--Enlighten.gif

1 Like

forgot he was on urp :roll_eyes:

here’s a good link if you’re interested in enlighten

Question - How do I deal with a large amount of lights indoor? - Unity Forum

2 Likes

Great effect. Is what’s shown in the GIF your scene? I’ve tried to reproduce something similar, but I didn’t get such a clean response to ambient light. Could you briefly describe the settings to achieve this effect?

It’s a simple test I did when they brought Enlighten support back in URP & HDRP 12.

The workflow is similar to lightmap baking. You can google “Unity Enlighten GI” or just follow the documentation.