Light Sources and Their Uses

Jack Leavey
Jan 28, 2022

--

There are several different types of lights in Unity. I briefly covered the skybox earlier, which can technically be a light source, so that’s out of the way. The remaining ones I want to cover that are commonly used are the directional light, point lights, and spotlights.

There should only be one directional light in a scene. This light comes from outside the boundaries of your scene and goes through the entire thing. This is most commonly used for the sun.

Editing a Direction Light

Direction lights also ignore most walls by default.

The next light type is a point light. A point light emits light in all directions from it center. A perfect real world equivalent would be a candle

This point light radiates in all directions, and is creating a reflection on the ground.

Finally, there are spotlights. Spotlights are just like their real world counterparts; they shoot light in a cone in a direction.

This Spotlight is casting a blue light in front of it.

--

--

Jack Leavey
Jack Leavey

Written by Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!

No responses yet