This is the documentation for Enlighten.
4. Add light sources
Let's add a light source to create the effect of direct sunlight.
- From the Modes menu, under Lights, drag the DirectionalLight class into the level. It doesn't matter where.
This creates a DirectionalLight actor which illuminates the level.
If Unreal Editor displays a "LIGHTING NEEDS TO BE REBUILT" warning, don't worry.
This is because the DirectionalLight's Mobility is set to Stationary. We'll change this in the next step. - With the DirectionalLight selected, in the Details
This tells UE4 that the actor can change in game mode, and must have dynamic lighting and shadows. Transform Mobility Movable - When you make changes, Enlighten updates the lighting instantly in the editor. To see this in action, use the Rotation tool (E) to rotate the DirectionalLight actor.
- Use Ctrl + Z to put the light back to its original position.
- To add a sunlight color to the light, in the Details panel, under Light, click the Light Color property and choose a pale yellow from the color picker.
- To complement the sunlight, add another light source to give the effect of light from the sky. In the Modes tab, in the search bar, type "enlighten".
- Drag the Enlighten Texture Environment class into the level. It doesn't matter where.
This creates an Enlighten Texture Environment actor. This is used to create the effect of scattered light from the sky (as opposed to direct light from the sun). - In the Details panel, under Environment, set the Brightness to 0.5. The lighting is updated instantly with your changes.
- To give the light a blue-sky color, click the Environment Color property and choose a pale sky blue.