Logo : Ue Lighting And Lumen

Ue Lighting And Lumen

Communauté
kevinpbuckley
ue-lighting-and-lumen

Light Unreal scenes in C++ and configure them correctly — light component types (UDirectionalLightComponent, UPointLightComponent, USpotLightComponent, URectLightComponent, USkyLightComponent), mobility (Static/Stationary/Movable) and its impact on GI, baking, and runtime cost, Lumen global illumination and reflections (enabling, quality settings, hardware vs software ray tracing), Virtual Shadow Maps, sky and atmosphere (USkyAtmosphereComponent, UExponentialHeightFogComponent), post process volumes for exposure/auto-exposure and Lumen overrides, and reflection captures. Use when creating or configuring light components in C++, choosing light mobility, enabling or troubleshooting Lumen GI/reflections, setting up sky/fog/atmosphere, tuning exposure or color grading, placing reflection captures, or deciding between baked and dynamic lighting.

Présentation

Éditeurkevinpbuckley
Dépôtunreal-engine-skills
Nom de la compétenceue-lighting-and-lumen
Étoiles
89
Forks
9
Fichiers inclus
3
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 3

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par kevinpbuckley sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Ue Lighting And Lumen dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-lighting-and-lumen
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinpbuckley/unreal-engine-skills.git /tmp/unreal-engine-skills
mkdir -p .claude/skills
cp -r /tmp/unreal-engine-skills/skills/core/ue-lighting-and-lumen .claude/skills/ue-lighting-and-lumen
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Ue Lighting And Lumen dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Ue Lighting And Lumen dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Ue Lighting And Lumen n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

Lighting & Lumen

UE5's default lighting pipeline is fully dynamic: Lumen provides global illumination (GI) and reflections without a bake. Understanding the light component hierarchy, mobility rules, and the Lumen/post-process stack lets you get correct and performant results quickly.

When to use this skill

  • Creating or modifying a light component in C++ (type selection, intensity/color/units, attenuation, IES profiles, light functions).
  • Choosing the right mobility for a light and understanding the GI/shadow consequences.
  • Enabling, tuning, or debugging Lumen GI and Lumen Reflections.
  • Setting up sky atmosphere, sky light, volumetric clouds, and exponential height fog.
  • Configuring post process volumes for exposure, auto-exposure, bloom, color grading, or per-area Lumen overrides.
  • Placing reflection captures for areas Lumen cannot reach (legacy or spec-heavy interiors).
  • Deciding when to use baked Lightmass vs Lumen.

Light component hierarchy

All light components derive from USceneComponent through the following chain:

USceneComponent
└─ ULightComponentBase        (LightComponentBase.h:15) — Intensity, LightColor, CastShadows
   ├─ ULightComponent         (LightComponent.h:48)     — Temperature, ShadowBias, IES, LightFunction
   │  ├─ ULocalLightComponent (LocalLightComponent.h:18) — AttenuationRadius, IntensityUnits
   │  │  ├─ UPointLightComponent (PointLightComponent.h:19) — SourceRadius, SourceLength
   │  │  │  └─ USpotLightComponent (SpotLightComponent.h:17) — InnerConeAngle, OuterConeAngle
   │  │  └─ URectLightComponent  (RectLightComponent.h:24) — SourceWidth, SourceHeight, BarnDoorAngle
   │  └─ UDirectionalLightComponent (DirectionalLightComponent.h:18) — DynamicShadowCascades, bAtmosphereSunLight
   └─ USkyLightComponent      (SkyLightComponent.h:101)  — bRealTimeCapture, SourceType, Cubemap

See references/light-components-and-mobility.md for C++ patterns and per-type properties.

Light types at a glance

ComponentShapeUse for
UDirectionalLightComponentinfinite parallel rayssun, moon, any directional source
UPointLightComponentsphere/capsule omnidirectionallight bulbs, candles, explosions
USpotLightComponent : Pointconetorches, headlights, stage spots
URectLightComponentplanar rectangleTVs, windows, fluorescent strips
USkyLightComponentcubemap captureambient IBL, sky bounce

Mobility and its lighting consequences

Mobility is set on the component via SetMobility(EComponentMobility::Movable).

MobilityDirect lightIndirect lightShadowsRuntime change
Staticbaked into lightmapsbakedbakednone
Stationarydynamic direct, baked indirectbaked (Lightmass)mixed (baked static, dynamic movable)color/intensity only
Movablefully dynamicLumen GI (no bake)Virtual Shadow Mapsall properties

Key rule for Lumen: only Movable lights feed Lumen GI. Static lights are entirely stored in lightmaps and their contribution is disabled when Lumen is enabled. Stationary lights contribute baked indirect; their direct pass is dynamic.

Stationary limit: a single primitive can overlap at most four Stationary lights before the fifth reverts to fully dynamic (expensive). The editor shows this with a red channel-limit indicator.

Lumen (dynamic GI + reflections)

Lumen is the default GI system for new UE5 projects. It computes diffuse interreflection and specular reflections in real time, across scales from millimeters to kilometers.

Enabling: Project Settings → Rendering → Dynamic Global Illumination: Lumen; Reflection Method: Lumen. Enabling Lumen automatically enables Generate Mesh Distance Fields (required for software ray tracing) and disables precomputed lightmaps.

Two tracing modes:

  • Software Ray Tracing — traces against Signed Distance Fields; works on all DX11+ hardware; requires Generate Mesh Distance Fields in project settings.
  • Hardware Ray Tracing (HRT) — uses the GPU BVH; higher quality reflections and hit-lighting; enabled in Project Settings → Rendering → Hardware Ray Tracing.

Quality is tuned per-camera in a APostProcessVolume via FPostProcessSettings fields (all in Engine/Classes/Engine/Scene.h):

FPostProcessSettings fieldPurpose
LumenSceneLightingQuality (line 1783)fidelity of the Lumen scene cache
LumenFinalGatherQuality (line 1799)noise vs cost of the final gather pass
LumenMaxTraceDistance (line 1811)max ray length; too small leaks GI into caves
LumenReflectionQuality (line 1846)reflection ray quality

See references/lumen-gi-and-reflections.md for the full Lumen settings table, emissive GI, and hardware ray tracing notes.

Virtual Shadow Maps (VSMs)

VSMs are the default shadow technology for Movable and Stationary lights when Lumen is active. They render into a virtualized (sparse) 16k×16k shadow atlas, support Nanite geometry natively, and require no per-light manual distance tuning.

Enable via Project Settings → Rendering → Shadows → Shadow Map Method: Virtual Shadow Maps. The CVars r.Shadow.Virtual.* control quality and cache behaviour.

Key shadow properties on ULightComponent (LightComponent.h):

  • ShadowBias (line 113) / ShadowSlopeBias (line 123) — self-shadow acne
  • ContactShadowLength (line 131) — screen-space contact shadow ray length
  • CastShadows / CastDynamicShadows / CastStaticShadows — per-channel toggle

For UDirectionalLightComponent, cascaded shadow maps are set with DynamicShadowCascades (line 73) and DynamicShadowDistanceMovableLight (line 59).

See references/shadows-and-postprocess.md.

Sky, atmosphere, and fog

A complete outdoor sky in C++ uses three cooperating actors/components:

  1. UDirectionalLightComponent with bAtmosphereSunLight = true — drives the sky color.
  2. USkyAtmosphereComponent (Components/SkyAtmosphereComponent.h) — physically-based atmosphere scattering.
  3. USkyLightComponent with bRealTimeCapture = true — recaptures the rendered sky every tick for ambient/IBL.

Fog depth and god rays come from UExponentialHeightFogComponent (Components/ExponentialHeightFogComponent.h). Enable volumetric fog on it for VolumetricFogScatteringDistribution and VolumetricFogAlbedo to feed Lumen GI.

Post Process Volume and exposure

APostProcessVolume (Engine/PostProcessVolume.h) hosts FPostProcessSettings (Engine/Scene.h:711). Set bUnbound = true for a global volume; bounded volumes blend by distance (Priority and BlendRadius fields).

Exposure settings in FPostProcessSettings:

  • AutoExposureMethod (line 1491) — AEM_Histogram (default) or AEM_Basic
  • AutoExposureBias (line 1933) — EV100 offset for all metering modes
  • AutoExposureMinBrightness / AutoExposureMaxBrightness (lines 1994, 2002) — clamp the auto-exposure range (in EV100 or cd/m² depending on project setting)

For predictable results, prefer manual exposure over auto: set AutoExposureMethod to AEM_Manual and fix the EV100 directly with AutoExposureBias. Auto-exposure "breathes" as the camera pans, which reads as incorrect to players.

Color grading and tone curve live alongside exposure in the same struct; see references/shadows-and-postprocess.md.

Reflection captures (legacy / spec fill)

UReflectionCaptureComponent (Components/ReflectionCaptureComponent.h:30) and its concrete subclasses (USphereReflectionCaptureComponent, UBoxReflectionCaptureComponent) provide cubemap IBL for surfaces with low roughness in areas where Lumen reflections have insufficient quality (e.g., enclosed interiors or mobile targets). They are not updated at runtime by default; call MarkDirtyForRecaptureOrUpload() to force a refresh.

With Lumen enabled, reflection captures are mostly replaced by Lumen Reflections for Movable surfaces. They remain relevant for Static/Stationary geometry and as a fallback for hardware that does not meet Lumen's requirements.

C++ snippet — creating and configuring a light

cpp
// In actor constructor:
#include "Components/PointLightComponent.h"

UPROPERTY(VisibleAnywhere)
TObjectPtr<UPointLightComponent> FillLight;

// Constructor body:
FillLight = CreateDefaultSubobject<UPointLightComponent>(TEXT("FillLight"));
FillLight->SetupAttachment(RootComponent);
FillLight->SetIntensity(2000.f);           // lumens (with inverse-sq falloff)
FillLight->SetLightColor(FLinearColor(1.f, 0.95f, 0.8f));
FillLight->SetAttenuationRadius(600.f);
FillLight->CastShadows = true;
cpp
// Runtime: change intensity and disable shadow casting
FillLight->SetIntensity(500.f);
FillLight->SetCastShadows(false);

Key APIs on ULightComponent (all BlueprintCallable):

  • SetIntensity(float) — total output in the component's intensity units
  • SetLightColor(FLinearColor, bool bSRGB) — filter tint
  • SetTemperature(float) / SetUseTemperature(bool) — color temperature (Kelvin)
  • SetShadowBias(float) / SetShadowSlopeBias(float) — self-shadow tuning
  • SetLightFunctionMaterial(UMaterialInterface*) — project a material as a cookie

On ULocalLightComponent:

  • SetAttenuationRadius(float) — bounding radius; affects tile-culling cost
  • SetIntensityUnits(ELightUnits) — Candelas, Lumens, or EV100

Gotchas

  • Static lights ignored by Lumen — Lumen disables lightmap contributions; only Movable (and partially Stationary) lights drive dynamic GI.
  • Mesh distance fields off — Lumen's software path silently degrades or produces black GI; enable in Project Settings → Rendering → Generate Mesh Distance Fields.
  • More than four overlapping Stationary lights — fifth light degrades to Movable shadow cost; keep count per-area ≤ 4.
  • Auto-exposure surprise — scenes look inconsistent as the camera moves; use manual exposure for cinematic or stylized work.
  • Sky Light not recapturing — with bRealTimeCapture = false, the sky light bakes once; call RecaptureSky() or set bRealTimeCapture = true when the sky changes.
  • VSM invalidation cost — moving or spawning many Movable meshes near shadowed lights forces cache invalidation; pool or batch spawn off-screen when possible.
  • Rect lights and light functions — URectLightComponent does not support LightFunctionMaterial (only Directional/Point/Spot do).
  • Lightmap UVs for baked lighting — if you fall back to Lightmass, meshes must have a valid lightmap UV channel or shadows bake black.

Version notes

  • Lumen is the default GI system for new UE5 projects; existing UE4 projects converted to UE5 do not automatically enable it (avoids breaking baked workflows).
  • MegaLights (bAllowMegaLights on ULightComponent, line 171) is a UE5.5+ feature for stochastic many-light rendering; present in 5.8 but still experimental.
  • VSMs replaced the legacy Cascaded Shadow Map default for PC/console in UE5; mobile platforms still use traditional shadow maps.

References & source material

Engine source (UE 5.8, under Engine/Source/Runtime/Engine/Classes/):

  • Components/LightComponentBase.h — ULightComponentBase:15; Intensity:37, LightColor:44, CastShadows:58, IndirectLightingIntensity:116, SetCastShadows():146, GetLightColor():150.
  • Components/LightComponent.h — ULightComponent:48; Temperature:57, ShadowBias:113, ShadowSlopeBias:123, ContactShadowLength:131, bAllowMegaLights:171, LightFunctionMaterial:205, IESTexture:219, SetIntensity():286, SetLightColor():296, SetTemperature():303.
  • Components/LocalLightComponent.h — ULocalLightComponent:18; IntensityUnits:28, AttenuationRadius:46, SetAttenuationRadius():53.
  • Components/PointLightComponent.h — UPointLightComponent:19; SourceRadius:45, SourceLength:59, SetSourceRadius():71.
  • Components/SpotLightComponent.h — USpotLightComponent:17; InnerConeAngle:23, OuterConeAngle:27.
  • Components/RectLightComponent.h — URectLightComponent:24; SourceWidth:33, SourceHeight:40, BarnDoorAngle:46, BarnDoorLength:52.
  • Components/SkyLightComponent.h — USkyLightComponent:101; bRealTimeCapture:108, SourceType:112, RecaptureSky():304.
  • Components/DirectionalLightComponent.h — UDirectionalLightComponent:18; DynamicShadowDistanceMovableLight:59, DynamicShadowCascades:73, bAtmosphereSunLight:164.
  • Components/ReflectionCaptureComponent.h — UReflectionCaptureComponent:30.
  • Engine/PostProcessVolume.h — APostProcessVolume:22; bUnbound:51.
  • Engine/Scene.h — FPostProcessSettings:711; AutoExposureMethod:1491, AutoExposureBias:1933, AutoExposureMinBrightness:1994, AutoExposureMaxBrightness:2002, LumenSceneLightingQuality:1783, LumenFinalGatherQuality:1799, LumenMaxTraceDistance:1811, LumenReflectionQuality:1846.

Official docs (UE 5.8):

Deep-dive references in this skill:

Related skills: ue-nanite-and-rendering, ue-materials-and-shaders.

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA Ue Lighting And Lumen ?

Light Unreal scenes in C++ and configure them correctly — light component types (UDirectionalLightComponent, UPointLightComponent, USpotLightComponent, URectLightComponent, USkyLightComponent), mobility (Static/Stationary/Movable) and its impact on GI, baking, and runtime cost, Lumen global illumination and reflections (enabling, quality settings, hardware vs software ray tracing), Virtual Shadow Maps, sky and atmosphere (USkyAtmosphereComponent, UExponentialHeightFogComponent), post process volumes for exposure/auto-exposure and Lumen overrides, and reflection captures. Use when creating o...

Pourquoi utiliser Ue Lighting And Lumen sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Ue Lighting And Lumen se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Ue Lighting And Lumen dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/kevinpbuckley/unreal-engine-skills/tree/master/skills/core/ue-lighting-and-lumen. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Ue Lighting And Lumen ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Ue Lighting And Lumen ?

Autant que vous le souhaitez. Vous pouvez utiliser Ue Lighting And Lumen avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Ue Lighting And Lumen est-elle gratuite ?

Cette compétence est publiée sur GitHub par kevinpbuckley. Consultez le dépôt pour connaître les conditions de licence. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇