Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
4. Add light sources

    This is the documentation for Enlighten.

    4. Add light sources

    Oct 10, 2019

    Let's add a light source to create the effect of direct sunlight.

    1. 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.
    2. With the DirectionalLight selected, in the Details tab, under Transform, set the Mobility to Movable.

      This tells UE4 that the actor can change in game mode, and must have dynamic lighting and shadows.
    3.  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.
    4. Use Ctrl + Z to put the light back to its original position.
    5. 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.
    6. 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".
    7. 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).
    8. In the Details panel, under Environment, set the Brightness to 0.5. The lighting is updated instantly with your changes.
    9. To give the light a blue-sky color, click the Environment Color property and choose a pale sky blue.

    Next

    • 5. Understand the lighting
    , multiple selections available,

    Enlighten UE4 3.09 Documentation
    Results will update as you type.
    • Welcome to Enlighten
    • How Enlighten works
    • Install and build
    • Beginner tutorials
      • See what Enlighten can do in Unreal
        • 1: Open the level
        • 2. Run the precompute
        • 3. Turn emissive materials into light sources
        • 4. Add light sources
        • 5. Understand the lighting
        • 6. Lightmaps and light probes
        • 7. Lightmap resolution
        • 8. Light probe resolution
        • 9. Efficient Enlighten lighting
      • Set up Enlighten in Unreal from scratch
    • From static to dynamic lighting
    • How actors interact with Enlighten
    • Lightmap lighting
    • Probe lighting
    • Local reflections
    • Change the lighting resolution
    • World properties
    • Level properties
    • Precompute your level
    • Enlighten light properties
    • Light reflected from the sky
    • Material properties
    • Turn off Enlighten updates in game
    • Mesh destruction
    • LOD for lighting
    • Real-world sun/sky intensity
    • Collaborate on a level
    • Reserved texture samplers
    • Visualizations and statistics
    • Debug with Enlighten tools
    • Convert to vanilla UE4
    • Troubleshooting and support
    • Third-party licences
    • Release notes
      Calendars

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 11, "requestCorrelationId": "c4c430139071405f99ba232cfc1176f2"}