Language:
Page Info
Skill Level:
Engine Version:

Lighting Basics

PL_Banner.png

In Unreal Engine 4, there are a number of ways to add lights to a scene and there are a few key properties that have the greatest impact on lighting in the world.

Placing Lights

There are a number of ways to place lights in the scene:

  1. Drag one in from the Modes window in Place Mode.

    Under the Lights tab of the Modes menu, left click on a light then drag-and-drop the light in your level

You could also add a light directly from the Level Viewport window.

  1. Right Click in the viewport, select Place Actor, then select a light:

    LI_RCPlace.png

Once a light is added, you can then adjust the position and rotation of the light using the position (W) and rotation (E) widgets like any other object.

MoveRotateLights.png

Lights are represented by these sprites in the editor. From left to right they are: Point Light, Spot Light, and Directional Light.

LI_Sprites.png

Intensity

LI_brightness.png

Intensity determines how much energy the light outputs into the scene.

For Point Lights or Spot Lights, this is in units of lumens, where 1700 lumens corresponds to a 100W lightbulb.

Light Color

LO_HowTo_color.png

Light Color will adjust the color of the light and the sprite that represents the light in the editor will change its color to match.

LI_color.png

Attenuation Radius

The Attenuation Radius of the light does a few major things:

  1. Sets the reach of the light.

  2. Defines what objects it will affect.

  3. Serves as the outer bounds when calculating the falloff of the light.

Attenuation_Radius.png

Attenuation Radius values set above from left to right: 200, 400 and 800.

Light Attenuation Radius can have a serious impact on performance, so use larger radius values sparingly.

Source Radius and Length

LI_sourceRadius.png

Source Radius and Source Length deserve a special mention as they are what define the size of specular highlights on surfaces.

LI_lightSourceRadiusEffect.png

If you want to subdue this effect, check out the Min Roughness property on the light.

LI_MinRoughness.png

Min Roughness values of 0.3, 0.2, and 0.1

One last affect they have is in Lightmass when rendering lightmaps. Larger radius lights cast softer shadows (like area lights in most major 3D authoring packages). Since this is being processed by Lightmass, only Static lights will gain the effect.

LI_lightRadiusShadows.png

The red light has a Source Radius of 0, while the green light has a Source Radius of 150; note the soft shadows the green light casts.