Optimize Your Lighting With Light Probes in Unity

Prasetio Nugroho
2 min readMar 11, 2021

How can I get a good visuals in my game? How can I get good lighting?

From those questions I search the answer. And one of the answer is Light Probes. What is Light Probes?

Light Probes provide a way to capture and use information about light that is passing through the empty space in your scene.

Similar to lightmaps, light probes store “baked” information about lighting in your scene. The difference is that while lightmaps store lighting information about light hitting the surfaces in your scene, light probes store information about light passing through empty space in your scene. — Unity Docs

In my case, I have already baked the the lightmap, and here is the looks.

baked lightmap unity

I want my sphere, when moving, the lighting should be auto adjust to the sphere. So here we go! I use of Light Probes. I add Light Probe Group in hierarchy, then setup like this.

light probe group setup

After I setup the light probe, my sphere look better when I play it.

my sphere

When in play mode and you look the scene view the light probe will be like this.

light probe in scene view

The light probe storing light data for dynamic gameobject like my sphere, when moving, my sphere using the nearest point from the probe.

Conclusion

Maximize the lighting to get better visual look in your game and use the best practice to implement the lighting, like using light probe. You can see the sample in my github repo

--

--

Prasetio Nugroho

Interested in new tech, gaming, programming and another knowledge or possibilites that can make me better. Cheers!!