Skip to content

Painted Light

Summary: Three changes to the sun's light give the game's light a painted touch on top of a physical base. The sun's shadow edges are smudged in patches and wander a little, and the sun's lit amount leans toward a few value groups. They live in our engine fork, so they show only when the project runs on it. Indirect and sky light stay physical: the painted indirect light (a detail wash in shade and a warm/cool bounce) was dropped on 2026-10-23.

Table of Contents


What Each Effect Does

Effect What the frame shows Where it acts
Shadow smear Here and there along the sun's shadow edges (about a third of them), the edge is smudged and trails away from the light, as if softened with a finger; elsewhere it stays crisp Sun only, deferred light pass
Edge wander Hard sun-shadow edges wander a few centimetres along a world-anchored brush pattern, so they read organic instead of ruler-straight Sun only, deferred light pass
Value groups The sun's lit amount leans toward shadow, half-tone and light, as a painter keeps a plane one value; light-to-shadow edges come out slightly ragged. Lifts half-tones a little Sun's diffuse only; speculars stay physical

None of them adds a pass or touches material shaders: they change the sun's deferred light pass. They compute in the scene's high-precision light buffers, before tonemapping and its dither, so they add no colour banding (checked on captures at six times the contrast).

The brush pattern and the smear's shadow taps are smooth over many pixels, so each 2x2 pixel quad shares them: every pixel works out a quarter and reads the rest from its neighbours (EternalQuadShare.ush). Taps count only from a neighbour on the same surface, and nothing is redone for the others: a branch one pixel takes holds up every pixel running beside it, which cancelled the saving in grassy rooms when an earlier version redid them.

Not included, by the owner's call: the painted shading model and halation from the art spikes. Painted strokes come later, after their opt-in redesign. Dropped (2026-10-23, owner): the detail wash, whose 36 cm average showed as a grid of colour squares where a bright surface meets a dark one, and the warm/cool bounce.


Where It Runs

 Engine fork  eternal/5.8
 ┌──────────────────────────────────────┐
 │ deferred light pass (sun)            │
 │  smear, wander, value groups         │
 │  r.Eternal.PaintedShadows.*          │
 └──────────────────────────────────────┘

On the launcher engine the cvars don't exist and the sun's light is Epic's.


Settings

Plain cvars in every build, Shipping included. Defaults are the values the owner chose on captures.

Cvar Default Meaning
r.Eternal.PaintedShadows.Smear 20 Reach (cm) of the smudge on sun-shadow edges; 0 = crisp everywhere
r.Eternal.PaintedShadows.SmearShare 0.35 Rough share of shadow edges that are smudged
r.Eternal.PaintedShadows.Wander 6 How far (cm) hard shadow edges wander; 0 = off
r.Eternal.PaintedShadows.BrushScale 60 Size (cm) of the brush pattern the wander and value groups follow
r.Eternal.PaintedShadows.ValueGroups 0.35 Pull toward value groups; 0 = physical. 0.6 read too strong
r.Eternal.PaintedShadows.ValueGroupSoftness 0.12 Width of the transitions between groups
r.Eternal.PaintedShadows.Brush 0.12 How ragged the light-to-shadow edges get

Steam Deck

No Deck values are set: everything runs at the defaults above. A Deck value would go in [SteamDeck DeviceProfile] in Config/DefaultDeviceProfiles.ini.

What it cost on the Deck (GPU time, on minus off in the same run, Tools/deck_perf.ps1 settings deckdp and paintoff), measured while the dropped indirect light was still in, so today's cost is lower:

Where Before quad sharing (e2) With it (e3)
Forest dungeon rooms 0-4 (quiet) 1.3-1.7 ms 0.3-0.7 ms
Surface Lab, mud / puddle 1.49 / 1.39 ms 0.90 / 0.72 ms
Surface Lab, grass 0.15 ms 0.03 ms

The forest rooms sit at about 15-16 ms of GPU at 60 fps, so painted light's share decides whether some of them hold 60. paint_lite in the same script turns off only the smudge, the part with the most taps.

Read these as on-minus-off within one run. The Deck sets its GPU clock by load (about 1.0-1.1 GHz in these rooms), so a cheaper frame can come back at a lower clock and a similar GPU time, and parts measured alone don't add up to the whole; t.MaxFPS 0 doesn't lift the 60 fps cap under SteamOS.


Judging a Change

Use the look capture tools (Documentation/11_Tools/12_Look_Capture_Tools.md) at forest_start, factory_fence (sunlit patches cut by fence shadows: value groups, smear). Capture with time frozen (--dilation 0.0001) so flickering lights and interaction glows don't move between shots, and compare against a repeat of "off". Flip in a lossless format: a GIF's 256-colour palette bands and flashes on its own.

For an engine shader change that should keep the look (a cost cut), compare in one editor session: stash the shader edits, recompileshaders changed (the old shaders come back from the cache), capture, restore the edits, recompile, capture again. Frozen shots still differ by about 1 grey level from frame to frame (anti-aliasing jitter, Lumen), so compare what each setting adds over "off" within each capture, and check any difference against that capture's own repeat before blaming the shader: a time-varying glow looks like a change.


Source References

Piece Location
Registry rows (why, re-port cost, drop condition) Engine fork ETERNAL_CHANGES.md
Sun: smear, wander, value groups Fork Engine/Shaders/Private/EternalPaintedShadows.ush, DeferredLightPixelShaders.usf, Renderer/Private/LightRendering.cpp
Quad sharing Fork Engine/Shaders/Private/EternalQuadShare.ush (on UE's PixelQuadMessagePassing.ush)
Deck on/off settings Tools/deck_perf.ps1: paintoff, paint_lite


Recent Changes

Date Change Impact
2026-10-16 Smear, wander, value groups, wash and bounce registered on the engine fork; per-Domain bounce Visible only on the fork build until the project switches engines
2026-10-16 Pixel quads share the brush pattern and the smear's and wash's taps (engine e3) Same look; Deck cost in forest rooms 1.3-1.7 ms -> 0.3-0.7 ms
2026-10-23 Painted indirect light dropped (detail wash, warm/cool bounce; owner): fork 99589838447, FEnvironmentLightingConfig::PaintedBounce and its spec removed Indirect and sky light are Epic's again; the wash's colour-square grid is gone