Latest news
Rhino 8 Guide to Offsetting Surfaces, Creating Shells, and Joining ObjectsExporting Images in Houdini Copernicus: An Image ROP GuideA Guide to Building a Remote Control Panel with Unreal EngineBlender Cycles Denoising Guide: Step-by-Step Settings for Cleaner RendersEmbedding Textures in Blender Projects: A Guide to Packing ResourcesBlender Face Picker released: Animate facial expressions without building a rigUnreal Engine Virtual Shadow Maps Guide: Shadow Quality with 8 SettingsBlender Light Linking Guide: Control Lighting by Object in Architectural ScenesCurve Sculpt 3D Applies Sculpting Brushes Along Surfaces in BlenderRendering in Blender from the Command Line: Still Frames and Animation
Tips & GuidesUnreal Engine

Unreal Engine Virtual Shadow Maps Guide: Shadow Quality with 8 Settings

Based on Epic’s Unreal Engine documentation, this guide covers how to enable Virtual Shadow Maps and balance shadow quality with performance. It highlights ways to apply the documented features to architectural visualization workflows.

Soft shadows cast across an interior by light coming through a large windowAI image
Representative image, generated with AI.Image: 3dsınıfı / FCA AI

In brief

  1. Virtual Shadow Maps is the default shadow method in new Unreal Engine projects.
  2. VSM divides virtual shadow maps into 128 × 128-pixel pages; the maps have a virtual resolution of 16K × 16K.
  3. At the Epic Shadows scalability level, the default ray count is eight for local and directional lights.
  4. Epic describes Virtual Shadow Maps as designed for Nanite and notes that they may not be a good fit for projects that do not use Nanite.

Epic’s Unreal Engine documentation explains how to enable Virtual Shadow Maps (VSM) and which options can be used to control shadow settings. The documentation does not provide a workflow specifically for architectural visualization; the steps below show how to apply the official technical information to architectural and interior visualization workflows. These settings apply to the documented Unreal Engine 5 features; the sources do not specify a particular 5.x point release.

Checking VSM in a project

  1. Check the project’s shadow method. The setting is Shadow Map Method under Project Settings › Engine › Rendering › Direct Lighting. Here, you can choose Virtual Shadow Maps or the traditional Shadow Maps method used in earlier Unreal Engine versions. VSM is the default method in new projects.

  2. If the project was created before Unreal Engine 5.0, enable VSM in the project settings or use the r.Shadow.Virtual.Enable console variable. Do not assume the method is enabled automatically in older projects; verify the project setting. For scenes using Nanite, Epic recommends using Movable Lights or VSM: traditional shadow maps are not supported with Nanite.

  • Review Nanite and target-platform compatibility. Epic designed VSM to work with Nanite and notes that it may not be a good choice for projects or platforms that do not use Nanite. Choose the method based on more than shadow appearance alone; also take the geometry type and project requirements into account.

  • VSM divides very high-resolution shadow maps into small pages. The maps have a virtual resolution of 16K × 16K, and the pages are 128 × 128 pixels. The system creates the pages needed to shadow on-screen pixels and caches them between frames unless a change to an object or light invalidates them. The aim is to focus on the areas that need processing rather than treating every unseen part of the scene the same way on every frame.

    Adjusting shadow softness with light source size

    1. Use Source Radius for local lights and Source Angle for directional lights. Shadow Map Ray Tracing (SMRT) uses these light-source values to produce shadow softness and contact hardening. Local lights have no default Source Radius; directional lights have a low default Source Angle. It is better to evaluate the values based on the type of lighting the scene needs than to apply the same approach to every light.

    2. Check both appearance and cost as you increase the source size. Epic notes that very large Source Radius values for local lights and very large Source Angle values for directional lights can affect performance; penumbrae can also become visually distorted when the camera gets close to shadow edges. The documentation includes an example Point Light with a Source Radius of 10. This is an illustrative example, not a fixed value recommended for every scene.

    3. Test ray and sample counts if you see noise in the penumbra. At the Epic Shadows scalability level, local and directional lights use eight rays. Ray counts are controlled by the r.Shadow.Virtual.SMRT.RayCountLocal and r.Shadow.Virtual.SMRT.RayCountDirectional variables. Fewer rays can produce visible noise in the penumbra; setting the relevant value to 0 disables SMRT and switches to a hard shadow with a single sample.

    The number of shadow samples per ray also affects softness and cost. Epic provides the r.Shadow.Virtual.SMRT.SamplesPerRayLocal and r.Shadow.Virtual.SMRT.SamplesPerRayDirectional variables for local and directional lights, respectively. Fewer samples are cheaper to process, but limit how soft the shadow can be. The documentation identifies values in the 4–8 range as working well.

    SettingDocumented valueEffect
    Shadows scalabilityEpicUses eight rays by default for local and directional lights.
    SamplesPerRay variables4–8 samplesSets the number of samples per ray and the achievable penumbra softness.
    SMRT ray count0 in the relevant variableDisables SMRT and switches to a hard shadow with a single sample.

    Clipmaps, resolution, and caching in large scenes

    1. Take directional-light clipmaps into account in large outdoor scenes. A single VSM cannot provide sufficient resolution across a wide area, so directional lights use levels that expand around the camera. By default, page tables are allocated for levels 6–22. The most detailed level covers an area 64 cm across around the camera, while the largest covers an area of approximately 40 km. Set the first and last levels with r.Shadow.Virtual.Clipmap.FirstLevel and r.Shadow.Virtual.Clipmap.LastLevel.

    Control resolution distribution with r.Shadow.Virtual.ResolutionLodBiasDirectional. According to Epic, reducing the value by 1 doubles the resolution of the relevant shadows, at a performance cost. Local-light resolution can be affected by the Shadow scalability settings or r.Shadow.Virtual.ResolutionLodBiasLocal. Spot Lights use a single 16K VSM with a mip chain, while Point Lights use cube maps with a 16K VSM on each face. Virtual resolution may be insufficient for very large local lights, so Epic recommends considering directional lights where possible.

    1. Don’t turn off caching as a performance setting. Reusing VSM pages from previous frames is important for performance, especially in complex scenes, and caching is enabled by default. Epic documents r.Shadow.Virtual.Cache 0 as a way to disable caching for debugging. Once troubleshooting is complete, check the caching behavior again.

    Considerations for architectural visualization workflows

    Detailed façades, close-up architectural elements, and large dynamic environments using Nanite may suit the types of scenes VSM is designed for. In interior visualization, assess light-source size and shadow softness together. Increasing the source radius or angle can change not only the visual result, but also processing cost and shadow-edge behavior. Comparing settings in a representative scene is therefore a more controlled approach than applying them to the entire project at once.

    When VSM is enabled, some older shadow methods are replaced by the new method. For example, Cascaded Shadow Maps (CSM) are not used with VSM for directional lights. Fully baked Static Light shadows continue to work when Lumen is not used. Also, Shadow Bias settings used for classic shadow maps do not apply to lights using VSM. Keeping these differences in mind when reviewing scene settings can help teams avoid spending time on settings that have no effect.

    Common mistakes

    • Assuming traditional shadow maps support Nanite geometry in a scene that uses Nanite. Epic says Movable Lights or VSM are required for this use case.

    • Increasing Source Radius or Source Angle too much to soften shadows without considering performance or the risk of visual distortion near the camera.

    • Lowering the resolution bias to sharpen shadows without accounting for the performance cost.

    • Forgetting to check whether caching has been re-enabled after turning it off for debugging.

    Sources

    2 sources
    D
    dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/virtual-shadow-maps-in-unreal-engine
    Summary
    D
    dev.epicgames.comdev.epicgames.com/documentation/en-us/unreal-engine/shadowing-in-unreal-engine
    Summary

    Source texts are not republished; short quotes are marked, everything else is our own summary and commentary.

    3dsınıfı’s take
    3dEditor’s assessment

    For architectural firms and visualization teams in Turkey, VSM offers a way to manage high-resolution shadows in demanding Nanite scenes with fewer manual adjustments. However, this does not mean every project will automatically see a performance boost; light size, scene scale, and resolution choices all affect the result.

    Before investing in new hardware or making extensive setting changes, a more cautious starting point is to check the project’s shadow method and Nanite usage. Share with the team that increasing resolution can have a cost, classic Shadow Bias settings do not work with VSM, and caching matters for performance. Make the final decision based on comparisons in representative scenes.

    Frequently asked questions

    How do you enable Virtual Shadow Maps in Unreal Engine?

    Choose Virtual Shadow Maps from `Shadow Map Method` under `Project Settings › Engine › Rendering › Direct Lighting`. The method is enabled by default in new projects.

    Can Virtual Shadow Maps be used with Nanite?

    Epic describes VSM as a method designed for use with Nanite. For projects using Nanite, it recommends Movable Lights or VSM.

    How do you adjust soft shadows in Unreal Engine VSM?

    `Source Radius` for local lights and `Source Angle` for directional lights affect shadow softness. SMRT ray and sample counts also determine the balance between quality and processing cost.

    Comments and the forum are in Turkish.Join the discussion
    +

    Related news