XFSDK Light
XFSDK Light is a rendering plugin for Unreal Engine 5.8. It gives you anti-aliasing, contact shadows and dynamic global illumination that look good without TAA or TSR, plus the startup tooling a shipped game needs: first-start shader precompilation, loading screens and an in-game developer menu.
X Framework Light (UEF / uEx) is now XFSDK Light. Console variables use the xl_ prefix instead of rEx..
See What changed in 3.0 before upgrading a 2.x project.
XFSDK Light bundles several features. The separately sold Enhanced SMAA and Hybrid SDF GI packages each contain only their named feature, not this full bundle.
Why this plugin
Unreal's modern pipeline assumes a temporal upscaler. With TAA/TSR off you lose anti-aliasing, and many effects that rely on temporal accumulation turn noisy. XFSDK Light is built for projects that want a sharp, stable image at native resolution:
- SMAA and SMAA TX2 for anti-aliasing with no temporal smear, or only a light two-frame blend.
- Screen space shadows based on Bend Studio's technique, for contact and micro shadows that shadow maps miss.
- Hybrid SDF GI, a software global illumination that runs on the global distance field and does not need hardware ray tracing.
Every rendering feature is compute based, works with the deferred renderer and is switched on with a console variable, so you can enable only what you need.
Features
| Feature | What it does | Page |
|---|---|---|
| SMAA 1x | Spatial morphological anti-aliasing, compute shader | Anti-Aliasing |
| SMAA TX2 | SMAA plus a two-frame temporal blend, inspired by CryEngine 3's SMAA TX2 | Anti-Aliasing |
| RCAS | Optional AMD FidelityFX sharpening after SMAA TX2 | Anti-Aliasing |
| Screen Space Shadows | Bend Studio style contact shadows, per-material thickness and depth bias | Screen Space Shadows |
| Hybrid SDF GI | Distance-field GI with placed probe volumes, surfel cache, optional final gather | Global Illumination |
| Shader Precompilation | Compiles pipeline states (PSOs) on first start, with a progress screen | PSO Prewarming |
| Loading Screens | Startup black screen and a loading screen that shows what it is waiting for | Loading Screens |
| Developer Menu | In-game ImGui menu for every setting (Development builds) | System setup |
Requirements
- Unreal Engine 5.8, Windows, DirectX 12 (SM6) or DirectX 11 (SM5).
- Deferred shading. Substrate off for the per-material shadow data.
- For Hybrid SDF GI: Generate Mesh Distance Fields on, and
r.DynamicGlobalIlluminationMethod=3(Plugin).
Installation
- Copy the
XFSDK_Lightfolder into your project'sPluginsfolder (or install it from Fab). - Enable XFSDK Light in Edit › Plugins and restart the editor.
- Pick the features you want below. Nothing renders differently until you turn a feature on.
Quick start
Add the lines you need to Config/DefaultEngine.ini:
[/Script/Engine.RendererSettings]
; Required by XFSDK anti-aliasing: the engine's own AA stays off
r.AntiAliasingMethod=0
; Required by Hybrid SDF GI
r.DynamicGlobalIlluminationMethod=3
r.GenerateMeshDistanceFields=True
[SystemSettings]
; Render at native resolution (see the note below)
r.ScreenPercentage.Default.Desktop.Mode=0
r.ScreenPercentage.Default=100
; SMAA 2TX
xl_smaa_mode=2
; Screen space shadows
xl_sss_enable=1
; Hybrid SDF GI
xl_gi_method=2
Then:
- For GI, place one or more XFSDK GI Volume actors around your playable area. See Global Illumination.
- For shader precompilation and loading screens, set the maps and widgets in Project Settings. See System.
Unreal's default desktop setting lowers the render resolution with the display resolution (about 73% at 1080p and
60% at 1440p) and expects TSR to rebuild the detail. Without TSR the image looks pixelated. SMAA TX2 forces 100%
on its own; for SMAA 1x or no AA, add the two r.ScreenPercentage.Default lines above.
System setup
XFSDK Light provides shader precompilation, loading screens, and an in-game developer menu. The precompilation system has its own map and progress widget; the loading-screen manager is a separate system.
See PSO Prewarming and Loading Screens for detailed settings and Blueprint interfaces.
Shader precompilation
- In Project Settings, search for XFSDK System:
- Shader Precompilation Map:
/XFSDK_Light/XFSDK_UI/XFSDK_ShaderPrecomp/ShaderPrecomp_Level - Startup Map: the map players should land on (e.g. your main menu).
- Shader Precompilation Map:
- Set Game Default Map (Project Settings › Maps & Modes) to the Shader Precompilation Map. It is a tiny map: when there is work to do, precompilation starts there; when there isn't, the game moves straight on to the Startup Map. Any other default map is not redirected to the Startup Map on later starts.
- Add both maps to Project Settings › Packaging › List of maps to include in a packaged build.
- Make sure PSO precaching is on (it is by default):
[SystemSettings]
r.PSOPrecaching=1
r.PSOPrecache.Components=1
r.PSOPrecache.Resources=1
Precompilation only runs in packaged or standalone games, never in the editor or PIE.
Testing again: delete %LOCALAPPDATA%\<Project>\Saved\Config\Windows\GameUserSettings.ini (or remove its
[XFSDKShaderPrecompilation] section) to make the next start run it again.
Precompilation behavior, settings and progress widget.
Loading screens
In Project Settings › Game › XFSDK Loading Screen, set Loading Screen Widget to
/XFSDK_Light/XFSDK_LoadingScreen/XFSDK_LoadingScreen or your own Widget Blueprint (any User Widget).
Loading-screen behavior, status text, settings and Blueprint API.
Developer menu
The optional TBImGui-based developer menu exposes the XFSDK Light settings in Development builds. See console variables for the documented Light controls and Requirements for the dependency.
References
- Epic Games. PSO Precaching for Unreal Engine. Documentation
- Epic Games. Lyra Sample Game: Common Loading Screen plugin. The loading screen manager is based on it.
Plugin modules
| Module | Type | Purpose |
|---|---|---|
XFSDK_Render | Runtime | SMAA, SMAA TX2, RCAS, screen space shadows, Hybrid SDF GI, GI volumes |
XFSDK_System | Runtime | Startup flow and the developer menu |
XFSDK_Shader_Precompilation | Runtime | First-start PSO precompilation |
XFSDK_Loading_Screen | Runtime | Loading screen manager |
XFSDK_Startup_Loading_Screen | Client | Black screen while the engine starts |
XFSDK_Light_Runtime | Runtime | Blueprint helpers for console variables |
XFSDK_Light_Editor | Editor | Toolbar menu and the engine shader patch |
Blueprint helpers
XFSDK Light Blueprint library (any Blueprint):
| Node | Description |
|---|---|
| Set XFSDK Bool / Float / Int | Sets a console variable by name, e.g. xl_sss_enable. Use it from settings menus. |
| Get XFSDK Bool / Float / Int | Reads a console variable by name. |
| Reset XFSDK CVars | Resets every console variable whose name starts with the given prefix, e.g. xl_sss_. |
| Open Project Settings Window | Editor utility: opens a Project Settings section. |
What changed in 3.0
Renamed
- X Framework Light / UEF / uEx → XFSDK Light. Console variables
rEx.*→xl_*. - Loading screen console variables
CommonLoadingScreen.*→xl_common_loading_screen_*.
New
- Hybrid SDF GI (
xl_gi_method 2): distance-field GI with placed, bakeable probe volumes and an optional final gather based on DOOM: The Dark Ages (SIGGRAPH 2025). - SMAA TX2 with optional RCAS sharpening.
- Screen space shadows: per-material thickness, depth bias for flat materials, multi-light, and a "remove direct light" composite mode.
- Shader precompilation now compiles pipeline states for meshes and Niagara systems, and reruns after a GPU or driver change.
- Loading screen status text ("Loading Showcase", "Compiling shaders (12 remaining)").
Removed
- Light Propagation Volume (LPV): replaced by Hybrid SDF GI.
- SSIL: Hybrid SDF GI covers indirect light.
- ShaderWorks (
Scene.AllLightParams). - Filmic Temporal Filter: replaced by SMAA 2TX.
- NIS sharpen / NIS scaler: use RCAS.
- SMAA S2x (forward MSAA 2x).
Planned
- Hardware ray-traced GI.
xl_gi_method 1(Hybrid RT GI) is reserved for a hardware ray tracing version of the GI, using the same GI volumes and final gather with ray-traced instead of distance-field rays. - Loading screen restructure. The loading screen module will be reorganized. Settings and Blueprint names on the Light system setup section may change.
Console Variables
The console variables on this page use the Light prefix.
Set Light CVars in the console, in Config/DefaultEngine.ini under [SystemSettings], from Blueprint with Set XFSDK Int / Float / Bool, or in the developer menu.
Anti-aliasing
| Name | Default | Description |
|---|---|---|
xl_smaa_mode | 0 | 0 off, 1 SMAA, 2 SMAA 2TX |
xl_smaa_debug | 0 | 1 edges, 2 blend weights |
xl_smaa_disable_diag | 0 | 1 disables diagonal edge detection |
xl_smaa_corner_rounding | 0.25 | 0 sharp corners, 1 no corner detection |
xl_smaa_max_search_steps | 32 | Edge search length (16 / 32 / 64) |
xl_smaa_max_diag_search_steps | 16 | Diagonal search length (8 / 16 / 20) |
xl_smaa_hdr_edge_detection | 1 | Tonemap before edge detection |
xl_smaa_predication | 1 | Depth-guided edge detection |
xl_smaa_predication_threshold | 0.01 | Depth difference that counts as an edge |
xl_smaa_predication_scale | 2.0 | Threshold rise away from depth edges (1–5) |
xl_smaa_predication_strength | 0.4 | Threshold drop at depth edges (0–1) |
xl_smaa_tx2_history_weight | 1 | 0 CryEngine 3 motion fade, 1 50/50 unless object motion differs |
xl_smaa_tx2_velocity_rejection | 1.0 | Object motion difference (pixels) that drops the history |
xl_smaa_tx2_velocity_dilation | 1 | Take motion from the nearest surface in 3×3 |
xl_smaa_tx2_rcas_intensity | 0.0 | RCAS after SMAA 2TX. 0 off, up to 1 standard, up to 2 stronger |
xl_smaa_tx2_debug | 0 | 1 history weight, 2 reprojection, 3 frame difference |
Screen space shadows
| Name | Default | Description |
|---|---|---|
xl_sss_enable | 0 | Turns screen space shadows on |
xl_sss_surface_thickness | 0.05 | Pixel thickness, fraction of depth (≈ fraction of camera distance) |
xl_sss_sample_count | 60 | Shadow length in pixels (16–120) |
xl_sss_shadow_strength | 0.5 | 0 none, 1 black |
xl_sss_shadow_contrast | 4.0 | Edge sharpness (1–8) |
xl_sss_bilinear_threshold | 0.02 | Depth edge threshold for sample blending |
xl_sss_ignore_edge_pixels | 0 | Edge pixels don't cast |
xl_sss_min_depth_delta | 0.05 | Ignore casters closer than this fraction of a thickness window (0–0.5) |
xl_sss_max_distance | 5000 | Fully faded at this distance (cm) |
xl_sss_fade_ratio | 0.6 | Fade starts at this fraction of the max distance |
xl_sss_multi_light | 0 | 0 one light, 1 up to 4 lights |
xl_sss_use_early_out | 1 | Skip sky and out-of-range pixels |
xl_sss_shadow_mode | 0 | 0 darken, 1 remove direct light |
xl_sss_shadow_desaturation | 0.0 | Mode 0: desaturate shadows (0–1) |
xl_sss_material_thickness | 0 | Read per-material thickness (needs the shader patch) |
xl_sss_material_thickness_range | 4.0 | Material thickness range in stops (1–8) |
xl_sss_depth_bias | 0 | Read per-material depth bias (needs the shader patch) |
xl_sss_depth_bias_range | 8.0 | Depth bias at height 0, in cm (0.5–50) |
xl_sss_debug_mode | 0 | 1 edges, 2 shadow mask, 3 material thickness, 4 depth bias |
Global illumination
Common Light GI settings are listed below.
| Standalone GI | Light equivalent |
|---|---|
x_gi_method=2 | xl_gi_method=2 |
x_gi_dfgi_lite_quality=1 | xl_gi_dfgi_lite_quality=1 |
x_gi_dfgi_lite_final_gather=1 | xl_gi_dfgi_lite_final_gather=1 |
See Global Illumination for quality modes, final gather, and debugging.
System
| Light-only name | Default | Description |
|---|---|---|
xl_developer_menu_visible | 1 | Show the Light developer menu (Development builds) |
See Loading Screens for the complete loading-screen settings.
See PSO Prewarming and system setup for first-launch integration.
Engine settings XFSDK Light changes
| Name | When | Value |
|---|---|---|
r.TemporalAA.Upscaler | xl_smaa_mode 2 | 1 |
r.TemporalAASamples | xl_smaa_mode 2 | 2 |
r.ScreenPercentage | xl_smaa_mode 2 | 100 |
They are restored when SMAA 2TX is turned off.
See also XFSDK Light third-party references and credits.