Skip to main content

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.

Renamed in 3.0

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​

FeatureWhat it doesPage
SMAA 1xSpatial morphological anti-aliasing, compute shaderAnti-Aliasing
SMAA TX2SMAA plus a two-frame temporal blend, inspired by CryEngine 3's SMAA TX2Anti-Aliasing
RCASOptional AMD FidelityFX sharpening after SMAA TX2Anti-Aliasing
Screen Space ShadowsBend Studio style contact shadows, per-material thickness and depth biasScreen Space Shadows
Hybrid SDF GIDistance-field GI with placed probe volumes, surfel cache, optional final gatherGlobal Illumination
Shader PrecompilationCompiles pipeline states (PSOs) on first start, with a progress screenPSO Prewarming
Loading ScreensStartup black screen and a loading screen that shows what it is waiting forLoading Screens
Developer MenuIn-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​

  1. Copy the XFSDK_Light folder into your project's Plugins folder (or install it from Fab).
  2. Enable XFSDK Light in Edit › Plugins and restart the editor.
  3. 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.
Screen percentage

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​

  1. 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).
  2. 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.
  3. Add both maps to Project Settings › Packaging › List of maps to include in a packaged build.
  4. 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​

ModuleTypePurpose
XFSDK_RenderRuntimeSMAA, SMAA TX2, RCAS, screen space shadows, Hybrid SDF GI, GI volumes
XFSDK_SystemRuntimeStartup flow and the developer menu
XFSDK_Shader_PrecompilationRuntimeFirst-start PSO precompilation
XFSDK_Loading_ScreenRuntimeLoading screen manager
XFSDK_Startup_Loading_ScreenClientBlack screen while the engine starts
XFSDK_Light_RuntimeRuntimeBlueprint helpers for console variables
XFSDK_Light_EditorEditorToolbar menu and the engine shader patch

Blueprint helpers​

XFSDK Light Blueprint library (any Blueprint):

NodeDescription
Set XFSDK Bool / Float / IntSets a console variable by name, e.g. xl_sss_enable. Use it from settings menus.
Get XFSDK Bool / Float / IntReads a console variable by name.
Reset XFSDK CVarsResets every console variable whose name starts with the given prefix, e.g. xl_sss_.
Open Project Settings WindowEditor 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​

NameDefaultDescription
xl_smaa_mode00 off, 1 SMAA, 2 SMAA 2TX
xl_smaa_debug01 edges, 2 blend weights
xl_smaa_disable_diag01 disables diagonal edge detection
xl_smaa_corner_rounding0.250 sharp corners, 1 no corner detection
xl_smaa_max_search_steps32Edge search length (16 / 32 / 64)
xl_smaa_max_diag_search_steps16Diagonal search length (8 / 16 / 20)
xl_smaa_hdr_edge_detection1Tonemap before edge detection
xl_smaa_predication1Depth-guided edge detection
xl_smaa_predication_threshold0.01Depth difference that counts as an edge
xl_smaa_predication_scale2.0Threshold rise away from depth edges (1–5)
xl_smaa_predication_strength0.4Threshold drop at depth edges (0–1)
xl_smaa_tx2_history_weight10 CryEngine 3 motion fade, 1 50/50 unless object motion differs
xl_smaa_tx2_velocity_rejection1.0Object motion difference (pixels) that drops the history
xl_smaa_tx2_velocity_dilation1Take motion from the nearest surface in 3×3
xl_smaa_tx2_rcas_intensity0.0RCAS after SMAA 2TX. 0 off, up to 1 standard, up to 2 stronger
xl_smaa_tx2_debug01 history weight, 2 reprojection, 3 frame difference

Screen space shadows​

NameDefaultDescription
xl_sss_enable0Turns screen space shadows on
xl_sss_surface_thickness0.05Pixel thickness, fraction of depth (≈ fraction of camera distance)
xl_sss_sample_count60Shadow length in pixels (16–120)
xl_sss_shadow_strength0.50 none, 1 black
xl_sss_shadow_contrast4.0Edge sharpness (1–8)
xl_sss_bilinear_threshold0.02Depth edge threshold for sample blending
xl_sss_ignore_edge_pixels0Edge pixels don't cast
xl_sss_min_depth_delta0.05Ignore casters closer than this fraction of a thickness window (0–0.5)
xl_sss_max_distance5000Fully faded at this distance (cm)
xl_sss_fade_ratio0.6Fade starts at this fraction of the max distance
xl_sss_multi_light00 one light, 1 up to 4 lights
xl_sss_use_early_out1Skip sky and out-of-range pixels
xl_sss_shadow_mode00 darken, 1 remove direct light
xl_sss_shadow_desaturation0.0Mode 0: desaturate shadows (0–1)
xl_sss_material_thickness0Read per-material thickness (needs the shader patch)
xl_sss_material_thickness_range4.0Material thickness range in stops (1–8)
xl_sss_depth_bias0Read per-material depth bias (needs the shader patch)
xl_sss_depth_bias_range8.0Depth bias at height 0, in cm (0.5–50)
xl_sss_debug_mode01 edges, 2 shadow mask, 3 material thickness, 4 depth bias

Global illumination​

Common Light GI settings are listed below.

Standalone GILight equivalent
x_gi_method=2xl_gi_method=2
x_gi_dfgi_lite_quality=1xl_gi_dfgi_lite_quality=1
x_gi_dfgi_lite_final_gather=1xl_gi_dfgi_lite_final_gather=1

See Global Illumination for quality modes, final gather, and debugging.

System​

Light-only nameDefaultDescription
xl_developer_menu_visible1Show 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​

NameWhenValue
r.TemporalAA.Upscalerxl_smaa_mode 21
r.TemporalAASamplesxl_smaa_mode 22
r.ScreenPercentagexl_smaa_mode 2100

They are restored when SMAA 2TX is turned off.

See also XFSDK Light third-party references and credits.

Support​