User Guide Cancel

Enable lights to cast shadows

  1. After Effects User Guide
  2. Beta releases
    1. Beta Program Overview
    2. After Effects Beta Home
  3. Getting started
    1. Get started with After Effects
    2. What's new in After Effects 
    3. Release Notes | After Effects
    4. After Effects system requirements
    5. Keyboard shortcuts in After Effects
    6. Supported File formats | After Effects
    7. Hardware recommendations
    8. After Effects for Apple silicon
    9. Planning and setup
  4. Workspaces
    1. General user interface items
    2. Get to know After Effects interface
    3. Workflows
    4. Workspaces, panels, and viewers
  5. Projects and compositions
    1. Projects
    2. Composition basics
    3. Precomposing, nesting, and pre-rendering
    4. View detailed performance information with the Composition Profiler
    5. CINEMA 4D Composition Renderer
  6. Importing footage
    1. Preparing and importing still images
    2. Importing from After Effects and Adobe Premiere Pro
    3. Importing and interpreting video and audio
    4. Preparing and importing 3D image files
    5. Importing and interpreting footage items
    6. Working with footage items
    7. Detect edit points using Scene Edit Detection
    8. XMP metadata
  7. Text and Graphics
    1. Text
      1. Formatting characters and the Character panel
      2. Text effects
      3. Creating and editing text layers
      4. Formatting paragraphs and the Paragraph panel
      5. Extruding text and shape layers
      6. Animating text
      7. Examples and resources for text animation
      8. Live Text Templates
    2. Motion Graphics
      1. Work with Motion Graphics templates in After Effects
      2. Use expressions to create drop-down lists in Motion Graphics templates
      3. Work with Essential Properties to create Motion Graphics templates
      4. Replace images and videos in Motion Graphics templates and Essential Properties
      5. Animate faster and easier using the Properties panel
  8. Drawing, Painting, and Paths
    1. Overview of shape layers, paths, and vector graphics
    2. Paint tools: Brush, Clone Stamp, and Eraser
    3. Taper shape strokes
    4. Shape attributes, paint operations, and path operations for shape layers
    5. Use Offset Paths shape effect to alter shapes
    6. Creating shapes
    7. Create masks
    8. Remove objects from your videos with the Content-Aware Fill panel
    9. Roto Brush and Refine Matte
    10. Create Nulls for Positional Properties and Paths
  9. Layers, Markers, and Camera
    1. Selecting and arranging layers
    2. Blending modes and layer styles
    3. 3D layers
    4. Layer properties
    5. Creating layers
    6. Managing layers
    7. Layer markers and composition markers
    8. Cameras, lights, and points of interest
  10. Animation, Keyframes, Motion Tracking, and Keying
    1. Animation
      1. Animation basics
      2. Animating with Puppet tools
      3. Managing and animating shape paths and masks
      4. Animating Sketch and Capture shapes using After Effects
      5. Assorted animation tools
      6. Work with Data-driven animation
    2. Keyframe
      1. Keyframe interpolation
      2. Setting, selecting, and deleting keyframes
      3. Editing, moving, and copying keyframes
    3. Motion tracking
      1. Tracking and stabilizing motion
      2. Face Tracking
      3. Mask Tracking
      4. Mask Reference
      5. Speed
      6. Time-stretching and time-remapping
      7. Timecode and time display units
    4. Keying
      1. Keying
      2. Keying effects
  11. Transparency and Compositing
    1. Compositing and transparency overview and resources
    2. Alpha channels and masks
    3. Track Mattes and Traveling Mattes
  12. Adjusting color
    1. Color basics
    2. Color management
    3. Color Correction effects
    4. OpenColorIO and ACES color management
    5. Enhanced HDR support
    6. HDR import and export 
  13. Effects and Animation Presets
    1. Effects and animation presets overview
    2. Effect list
    3. Effect Manager
    4. Simulation effects
    5. Stylize effects
    6. Audio effects
    7. Distort effects
    8. Perspective effects
    9. Channel effects
    10. Generate effects
    11. Time effects
    12. Transition effects
    13. The Rolling Shutter Repair effect
    14. Blur and Sharpen effects
    15. 3D Channel effects
    16. Utility effects
    17. Matte effects
    18. Noise and Grain effects
    19. Detail-preserving Upscale effect
    20. Obsolete effects
  14. Expressions and Automation
    1. Expressions
      1. Expression basics
      2. Understanding the expression language
      3. Using expression controls
      4. Syntax differences between the JavaScript and Legacy ExtendScript expression engines
      5. Editing expressions
      6. Expression errors
      7. Using the Expressions editor
      8. Use expressions to edit and access text properties
      9. Expression language reference
      10. Expression examples
    2. Automation
      1. Automation
      2. Scripts
  15. Immersive video, VR, and 3D
    1. Construct VR environments in After Effects
    2. Apply immersive video effects
    3. Compositing tools for VR/360 videos
    4. Advanced 3D Renderer
    5. Import and add 3D models to your composition
    6. Import 3D models from Creative Cloud Libraries
    7. Image-Based Lighting
    8. Animated Environment Lights
    9. Enable lights to cast shadows
    10. Extract and animate lights and cameras from 3D models
    11. Tracking 3D camera movement
    12. Cast and accept shadows
    13. Embedded 3D model animations
    14. Shadow Catcher
    15. 3D depth data extraction
    16. Modify materials properties of a 3D layer
    17. Work in 3D Design Space
    18. 3D Transform Gizmos
    19. Do more with 3D animation
    20. Preview changes to 3D designs real time with the Mercury 3D engine
    21. Add responsive design to your graphics 
  16. Views and Previews
    1. Previewing
    2. Video preview with Mercury Transmit
    3. Modifying and using views
  17. Rendering and Exporting
    1. Basics of rendering and exporting
    2. H.264 Encoding in After Effects
    3. Export an After Effects project as an Adobe Premiere Pro project
    4. Converting movies
    5. Multi-frame rendering
    6. Automated rendering and network rendering
    7. Rendering and exporting still images and still-image sequences
    8. Using the GoPro CineForm codec in After Effects
  18. Working with other applications
    1. Dynamic Link and After Effects
    2. Working with After Effects and other applications
      1. Export After Effects project as Premiere Pro project
    3. Sync Settings in After Effects
    4. Creative Cloud Libraries in After Effects
    5. Plug-ins
    6. Cinema 4D and Cineware
  19. Collaboration: Frame.io, and Team Projects
    1. Collaboration in Premiere Pro and After Effects
    2. Frame.io
      1. Install and activate Frame.io
      2. Use Frame.io with Premiere Pro and After Effects
      3. Frequently asked questions
    3. Team Projects
      1. Get Started with Team Projects
      2. Create a Team Project
      3. Collaborate with Team Projects
  20. Memory, storage, performance
    1. Memory and storage
    2. How After Effects handles low memory issues while previewing    
    3. Improve performance
    4. Preferences
    5. GPU and GPU driver requirements for After Effects
  21. Knowledge Base
    1. Known issues
    2. Fixed issues
    3. Frequently asked questions
    4. After Effects and macOS Ventura
    5. How After Effects handles low memory issues while previewing

Learn to set the Environment, Spot, and Parallel lights to cast shadows in a 3D composition.

  Use new beta features

Enabling lights to cast shadows is now available for testing and feedback. Try it now in After Effects (beta).

Adding multiple shadow-casting lights to a 3D scene can enhance dynamic lighting, making the environment feel truly alive. When working with the Advanced 3D render engine, you can add Spot, Parallel, and Environment lights and enable them to cast shadows. These capabilities allow you to layer different types of shadows from various supported light sources. By working with different colors of lights and shadows in the 3D layers, you can compose 3D scenes that create real-world or experimental additive-color shadows.

The latest update allows you to add up to eight separate Spot and Parallel light sources that can cast shadows, in addition to one Environment shadow layer to enhance the realism and depth of your 3D scenes.

A few examples where multiple light sources of various types are added, each set to cast shadows:

A 3D scene with no lights.

Featuring a Spot light positioned at the lower-right and a Parallel light placed on the right, each with distinct colors and shadow settings.

The 3D scene with additional Spot and Parallel lights, each positioned in various directions, with different colors and shadow configurations.

An environment light added and layered among the list of existing Spot and Parallel lights.

The OBJ 3D model used can be found here.

Before you begin

Create a new composition with the desired settings and set up a 3D scene by adding 3D models and 3D layers.

  1. Add a light by selecting Layer > New > Light.

  2. In the Light Settings dialog box, assign a name to the light layer and select Spotlight, Parallel, or Environment from the Light Type dropdown menu.

  3. Change the Color of the light if needed.

    The Light Settings dialog box is currently open, offering a selection of colors in the Light Color prompt. The chosen color will determine the light's hue in the 3D scene.
    Choose the light color to set the tone, enhance realism, and highlight key elements.

  4. Set the intensity of the light to a desired level and adjust the following settings:

    • Cone Angle: Use it to adjust the spotlight beam's width to control how broad or focused the spotlight appears in your scene. Available only for Spot lights. 
    • Cone Feather: Use it to adjust how soft or sharp the edges of the light cone appear. Available only for Spot lights. 
    • Falloff: Define how the light's intensity diminishes over distance by choosing from None, Smooth, or Inverse Squared Clamped. Adjust the Radius and Falloff Distance to achieve more realistic lighting effects.
    The Light Settings dialog box is open with the Spot light selected. The light color, intensity, cone angle, and cone feather are adjusted to modify the Spot light's appearance in the 3D scene.
    Adjust the Cone Feather value of a Spot light to soften the edges of the light, creating a more gradual transition from light to shadow.

  5. Select Cast Shadows to enable the light to cast shadows.

    The Light Settings dialog box is open with the Casts Shadows option selected, enabling the light to cast shadows in the 3D scene.
    Adjust the lighting to create shadows, making the scene more realistic and ensuring it interacts naturally with other 3D objects.

    If you’ve already added the lights to the composition, you can enable shadow casting by selecting Cast Shadows under the light settings in the Timeline or Properties panel. If no shadow appears, you might need to enable some 3D layer properties. Refer to step 9 for details.

    In the Timeline panel, a Spot light's properties are listed and under Light Options, the Cast Shadows property is turned on.
    Set the light to cast shadows in a 3D scene using the Timeline or Properties panel.

  6. Adjust the additional shadow settings:

    • Shadow DarknessAdjust it to make shadows lighter or darker.

    Spot light with Shadow Darkness set to 50%.

    Spot light with Shadow Darkness set to 100%.

    • Shadow Diffusion: Adjust this setting to control how soft or sharp the shadows appear. Available only for Spot lights.

    Spot light with Shadow Diffusion set to 0 pixels.

    Spot light with Shadow Diffusion set to 100 pixels.

    Note:

    Sharp-edged shadows render the fastest. Increasing the Shadow Diffusion value will create softer shadows, but may take longer to render.

  7. Use the Render Options to enhance the quality of Spot and Parallel lights by adjusting the Render Quality slider. Additionally, you can configure the casting box properties, as well as the Resolution and Smoothness settings for Environment light, which do not affect Spot or Parallel lights.

    The Advanced 3D Render Options dialog box is open and there are settings that you can adjust for rendering and shadows. The Render Quality is currently set to 65.
    Change the Render Quality to adjust the resolution and smoothness of the final output.

    Tip:

    Adjust the Render Quality to low for interactive tasks like previews or editing. Increase it for the final output according to the project's specific requirements. Low to midrange quality settings are often sufficient for the final export and will render more quickly.

  8. You can configure up to eight individual Spot and Parallel light sources to cast shadows, along with one Environment shadow layer, making a total of nine shadow-casting sources.

    If you include more than eight Spot or Parallel lights in a scene, only the top eight in the timeline stack will cast shadows. The lights positioned lower in the stack will still provide illumination, but they won't cast shadows.

  9. To enable your 3D layers to receive and cast shadows, select the 3D layer in the timeline. Next, use the Material Options for solid layers and the Compositing Options to turn on the Accept Shadows and Cast Shadows functions.

    In the Timeline panel, the 3D layers' properties are expanded. For the layer with the 3D model, the lights and shadows are enabled under Compositing Options. For the Solid 3D layer, the lights and shadows are enabled under Material Options.
    Enable the lights and shadows properties for 3D layers to allow them to both receive and cast shadows.

    Tip:

    Try changing the shadow colors on receiving layers to override the color of the received shadow.

  10. Adjust the Position, Orientation, and Rotation of your lights to change the direction of the shadows, and use respective keyframes to animate them according to your requirements.

Be part of the discussion on support for Spot and Parallel light shadows in the After Effects beta community.

Additional resources

Help us to make the next releases of After Effects our best yet.
Submit feature requests, view, track, and vote for issues/feature requests using the After Effects beta support community.

Get help faster and easier

New user?