# TexelAtlas Unreal Engine 5 3D Look-Dev Playbook

> Compact, zero-truncation agent guide for building game-quality 3D scenes in **Unreal Engine 5** (UE 5.4–5.7 (Lumen / Nanite / Substrate); verified against `5.7`).
> Read this BEFORE writing scene code. Every technique `slug` resolves to `https://texelatlas.vercel.app/t/<slug>.md` with verified equations, parameters, and failure modes.

## 1. Recommended Unreal Engine 5 Pipeline Architecture

- 1. Lighting & environment: `SkyAtmosphere` + `DirectionalLight` (or interior `RectLight`s) + `SkyLight` (`Real Time Capture = true`) + optional `ExponentialHeightFog` (`Volumetric Fog`).
- 2. `Lumen` Global Illumination & Reflections + `Virtual Shadow Maps` + `Nanite` for dense geometric detail.
- 3. `Substrate` (or `Clear Coat` / `Subsurface Profile`) materials with `ParallaxOcclusionMapping` where Nanite displacement is not used.
- 4. `PostProcessVolume`: `TSR` anti-aliasing, calibrated manual EV100 exposure, selective `Bloom`, and Filmic/AgX tone curve.

## 2. Scene Archetype Recipes (Pick 1 Technique Per Stage)

### Outdoor Architecture (`outdoor-architecture`)
Daylight or dusk exteriors, streets, plazas, buildings, and walkable outdoor spaces with crisp near-to-far shadows and atmospheric depth.
- **sky/ibl**: `hillaire-sky-atmosphere` (builtin) + `rayleigh-mie-single-scattering` (builtin) · **shadows**: `cascaded-shadow-maps` (builtin) + `percentage-closer-soft-shadows` (builtin) · **ao/gi**: `ground-truth-ambient-occlusion` (builtin) + `multi-bounce-ambient-occlusion` (builtin) · **materials/micro**: `clearcoat-layer` (builtin) + `parallax-occlusion-mapping` (builtin) · **water/volumes**: `exponential-height-fog` (builtin) + `planar-reflections-oblique-clipping` (builtin) · **post/aa**: `dual-filter-bloom` (builtin) + `agx-tonemapping`

### Interiors, Characters & Product Look-Dev (`interior-product`)
Rooms, galleries, character portraits, and automotive/product turntables with accurate area lights, local reflections, and layered PBR materials.
- **sky/ibl**: `split-sum-ibl` (builtin) + `ltc-area-lights` (builtin) · **shadows**: `percentage-closer-soft-shadows` (builtin) + `contact-shadows` (builtin) · **ao/gi**: `ground-truth-ambient-occlusion` (builtin) + `multi-bounce-ambient-occlusion` (builtin) · **materials/micro**: `disney-principled-brdf` (builtin) + `clearcoat-layer` (builtin) · **water/volumes**: `screen-space-reflections` (builtin) · **post/aa**: `khronos-pbr-neutral` + `agx-tonemapping`

### Sci-Fi, Cyberpunk, Space & Night Scenes (`scifi-night-neon`)
Dark moody interiors, rain-slicked neon streets, cockpits, and space environments with area lights, wet reflections, volumetric beams, and controlled HDR bloom.
- **sky/ibl**: `split-sum-ibl` (builtin) + `ltc-area-lights` (builtin) · **shadows**: `percentage-closer-soft-shadows` (builtin) + `contact-shadows` (builtin) · **ao/gi**: `ground-truth-ambient-occlusion` (builtin) + `screen-space-gi` (builtin) · **materials/micro**: `anisotropic-ggx` (builtin) + `clearcoat-layer` (builtin) · **water/volumes**: `screen-space-reflections` (builtin) + `froxel-volumetric-fog` (builtin) · **post/aa**: `dual-filter-bloom` (builtin) + `agx-tonemapping`

### Stylized, Painterly & NPR Worlds (`stylized-npr`)
Cohesive cel-shaded, anime, watercolor, ink-contour, or dithered 3D worlds with clean silhouette discipline and anti-aliased shading bands.
- **sky/ibl**: `environment-mapping-cubemaps` (builtin) + `hosek-wilkie-sky` · **shadows**: `cascaded-shadow-maps` (builtin) + `percentage-closer-filtering` (builtin) · **ao/gi**: `n8ao` + `hbao` · **materials/micro**: `toksvig-mipmapping` (builtin) + `toon-shading` · **water/volumes**: `exponential-height-fog` (builtin) · **post/aa**: `kuwahara-filter` + `xdog-stylization`

### Oceans, Lakes & Coastal Environments (`water-coastal`)
Open seas, rivers, pools, and shorelines combining physical Fresnel, oblique planar reflections or FFT/Gerstner waves, and caustics.
- **sky/ibl**: `hillaire-sky-atmosphere` (builtin) + `split-sum-ibl` (builtin) · **shadows**: `cascaded-shadow-maps` (builtin) + `percentage-closer-filtering` (builtin) · **ao/gi**: `ground-truth-ambient-occlusion` (builtin) + `n8ao` · **materials/micro**: `fresnel-schlick-approximation` (builtin) + `weathering-simulation` · **water/volumes**: `planar-reflections-oblique-clipping` (builtin) + `exponential-height-fog` (builtin) · **post/aa**: `dual-filter-bloom` (builtin) + `agx-tonemapping`

### Large Terrain, Forests & Open Landscapes (`terrain-foliage`)
Wide natural vistas with anti-aliased grass and foliage, distance LOD, non-repeating rock/ground textures, clouds, and aerial perspective.
- **sky/ibl**: `hillaire-sky-atmosphere` (builtin) + `split-sum-ibl` (builtin) · **shadows**: `cascaded-shadow-maps` (builtin) + `contact-shadows` (builtin) · **ao/gi**: `ground-truth-ambient-occlusion` (builtin) + `multi-bounce-ambient-occlusion` (builtin) · **materials/micro**: `triplanar-mapping` (builtin) + `hashed-alpha-testing` (builtin) · **water/volumes**: `exponential-height-fog` (builtin) + `nubis-volumetric-clouds` (builtin) · **post/aa**: `temporal-anti-aliasing` (builtin) + `agx-tonemapping`

## 3. Prototype Shortcuts to Avoid (Upgrade Table)

| Common Agent Shortcut | Visual Symptom | TexelAtlas Upgrade |
|---|---|---|
| Single DirectionalLight shadow frustum stretched across a large (>20m) scene | Blurry, blocky shadows up close and objects looking detached from the ground | `cascaded-shadow-maps`, `percentage-closer-soft-shadows` — Use Cascaded Shadow Maps (`CSM` in Three.js or built-in CSM in Godot/Unity/Unreal) for large worlds, or tightly fitted `PCSS` + `contact-shadows` for compact scenes, with tuned `normalBias`. |
| Uniform roughness/metalness PBR materials with default flat normal maps | Flat, plastic-looking surfaces where painted metal, glass, cloth, skin, wood, and stone read identically | `clearcoat-layer`, `parallax-occlusion-mapping`, `toksvig-mipmapping` — Separate materials physically (`MeshPhysicalMaterial` / OpenPBR `clearcoat`, `sheen`, `anisotropy`, `iridescence`, or subsurface scattering), author varied roughness/AO maps, use POM/detail normals on close-up surfaces, and add `toksvig-mipmapping` to curb specular shimmer. |
| Skipping ambient occlusion or applying heavy monochrome SSAO | Props, characters, and geometry look pasted onto floors, or bright surfaces turn muddy gray in crevices | `n8ao`, `ground-truth-ambient-occlusion`, `multi-bounce-ambient-occlusion` — Enable `N8AO` or `GTAO` (half-res depth-aware denoise) and pair with multi-bounce albedo tinting so bright crevices stay clean and natural. |
| Repeating UV textures on large floors, walls, roads, or terrain | Obvious grid/checkerboard repetition across wide surfaces | `hex-tiling`, `triplanar-mapping`, `weathering-simulation` — Break periodicity with `hex-tiling` or `triplanar-mapping` (for steep slopes/cliffs) and layer low-frequency world-space roughness/color variation. |
| Hard alphaTest cutouts or unsorted alpha-blended cards (foliage, hair, fences, decals) | Sparkling distant edges, popping silhouettes, or broken transparency sorting | `hashed-alpha-testing`, `octahedral-impostors` — Use `alphaToCoverage` + hashed alpha testing (`hashed-alpha-testing`) with MSAA for order-independent anti-aliased cutouts. |
| Flat ambient fill + uncalibrated exposure / linear sRGB clipping (no IBL) | Washed-out shadows, flat ungrounded reflections, and neon/sun highlights clipping to harsh yellow or white | `split-sum-ibl`, `agx-tonemapping`, `exponential-height-fog` — Bake your environment (HDRI, studio rig, or procedural sky) into a prefiltered IBL cubemap (`PMREM`), add subtle atmospheric depth where appropriate, and finish with `AgX` or `Khronos PBR Neutral` + selective HDR bloom (`threshold >= 0.9`). |
| Hand-rolled `sin(x)*cos(y)` surface ripples or mirror blends without Fresnel/oblique clip | Artificial repeating stripes on liquids or broken reflection clipping on glossy/mirror planes | `planar-reflections-oblique-clipping`, `screen-space-reflections`, `fresnel-schlick-approximation` — Use physical Schlick Fresnel (`F0`), Lengyel oblique near-plane clipping for flat mirrors/water, `screen-space-reflections` for wet streets/glossy floors, and multi-directional or FFT/Gerstner waves for open water. |

## 4. Unreal Engine 5 Pitfalls & Pass Ordering

- On mirrors or calm water, enable `Hit Lighting for Reflections` in Lumen or add a `PlanarReflection` actor when sharp mirror fidelity is required.
- Clamp `Auto Exposure` Min/Max EV100 tightly so camera transitions between bright and dark zones do not blow out or crush midtones.

## 5. Top Verified Unreal Engine 5 Built-In & Official Switches (160 total; fetch `https://texelatlas.vercel.app/t/<slug>.md`)

### Sky, IBL & GI
- **Reflection probes with parallax-corrected cubemaps** (`reflection-probes-parallax-corrected-cubemaps`) [builtin · 0.0607ms T4] — `Place a Box Reflection Capture actor`
- **Split-Sum Image-Based Lighting** (`split-sum-ibl`) [builtin · 0.0613ms T4] — `Place Actors > Lights > Sky Light and Reflection Captures (prefiltered environment cubemap spec`
- **Environment mapping, cubemaps and skyboxes** (`environment-mapping-cubemaps`) [builtin · 0.1615ms T4] — `Sky Light with a manually specified cubemap`
- **Linearly Transformed Cosines for Area Lights** (`ltc-area-lights`) [builtin · 0.2775ms T4] — `Place Actors > Lights > Rect Light (RectLightComponent rectangular area lights)`
- **Planar reflections with oblique near-plane clipping** (`planar-reflections-oblique-clipping`) [builtin · 0.6098ms T4] — `Place a Planar Reflection actor`
- **Scalable Production Sky and Atmosphere (Hillaire)** (`hillaire-sky-atmosphere`) [builtin · 3.393ms T4] — `Place Actors > Visual Effects > Sky Atmosphere (Sky Atmosphere component)`

### Shadows & Ambient Occlusion
- **Hashed alpha testing / alpha-to-coverage for foliage** (`hashed-alpha-testing`) [builtin · 0.0744ms T4] — `Material > Blend Mode = Masked with Dither Opacity Mask (dither_opacity_mask) or Alpha to Cover`
- **Screen-Space Contact Shadows** (`contact-shadows`) [builtin · 0.353ms T4] — `Light > Advanced > Contact Shadow Length`
- **Percentage-Closer Filtering** (`percentage-closer-filtering`) [builtin · 0.6316ms T4] — `Directional/Point/Spot Light Shadow Maps and Virtual Shadow Maps (PCF shadow map filtering; VSM`
- **Ground-Truth Ambient Occlusion** (`ground-truth-ambient-occlusion`) [builtin · 1.1653ms T4] — `Post Process Volume > Ambient Occlusion (Screen Space Ambient Occlusion / GTAO via r.AmbientOcc`
- **Multi-Bounce Ambient Occlusion Approximation** (`multi-bounce-ambient-occlusion`) [builtin · 1.4436ms T4] — `Post Process Volume > Ambient Occlusion (GTAO with multi-bounce albedo approximation)`
- **Percentage-Closer Soft Shadows** (`percentage-closer-soft-shadows`) [builtin · 1.6496ms T4] — `Virtual Shadow Maps > Shadow Map Ray Tracing (SMRT) evaluates contact-hardening variable-penumb`

### Materials, BRDF & Micro-Detail
- **Triplanar mapping** (`triplanar-mapping`) [builtin · 0.0423ms T4] — `Material function WorldAlignedTexture (Texturing material functions)`
- **Schlick Fresnel approximation** (`fresnel-schlick-approximation`) [builtin · 0.0514ms T4] — `Material graph: Fresnel expression (ExponentIn, BaseReflectFractionIn) plus PBR grazing Fresnel`
- **Anisotropic GGX** (`anisotropic-ggx`) [builtin · 0.0614ms T4] — `Substrate material: Slab > Anisotropy input (Project Settings > Rendering > Substrate)`
- **OpenPBR Surface** (`openpbr-surface`) [builtin · 0.0625ms T4] — `Interchange MaterialX import: Project Settings > Interchange > MaterialX > OpenPBR Surface (map`
- **Charlie sheen (Estevez-Kulla)** (`charlie-sheen`) [builtin · 0.0669ms T4] — `Material > Shading Model = Cloth (Fuzz Color / Cloth) or Substrate Slab BSDF Fuzz inputs`
- **Disney principled BRDF** (`disney-principled-brdf`) [builtin · 0.0703ms T4] — `Material > Shading Model = Default Lit (Disney principled Base Color, Metallic, Specular, Rough`

### Water, Fog & Volumes
- **Exponential Height Fog** (`exponential-height-fog`) [builtin · 0.0776ms T4] — `Place Actors > Visual Effects > Exponential Height Fog`
- **Ray-marched Rayleigh/Mie Single Scattering** (`rayleigh-mie-single-scattering`) [builtin · 1.3947ms T4] — `Sky Atmosphere component > Rayleigh Scattering / Mie Scattering settings`
- **Screen-space Volumetric Light Scattering (God Rays)** (`volumetric-light-scattering-god-rays`) [builtin · 1.4269ms T4] — `Directional Light > Light Shafts > Light Shaft Bloom / Light Shaft Occlusion`
- **Froxel Volumetric Fog** (`froxel-volumetric-fog`) [builtin · 11.0497ms T4] — `Exponential Height Fog actor > Volumetric Fog checkbox`
- **Nubis-style Ray-marched Volumetric Clouds** (`nubis-volumetric-clouds`) [builtin · 110.3911ms T4] — `Place Actors > Visual Effects > Volumetric Cloud (ray-marched atmospheric cloud component)`
- **FFT Ocean (Tessendorf)** (`fft-ocean`) [official · 1.1608ms T4] — `Water plugin (WaterBodyOcean wave spectrum & Gerstner/FFT ocean system)`

### Post-Processing, Tonemapping & AA
- **Temporal Anti-Aliasing** (`temporal-anti-aliasing`) [builtin · 0.1956ms T4] — `Project Settings > Rendering > Default Settings > Anti-Aliasing Method = Temporal Anti-Aliasing`
- **Screen-space reflections** (`screen-space-reflections`) [builtin · 0.5894ms T4] — `Post Process Volume > Reflections > Method = Screen Space`
- **Dual-filter and progressive-downsample bloom** (`dual-filter-bloom`) [builtin · 3.5692ms T4] — `Post Process Volume > Lens > Bloom > Method = Standard (multi-pass Gaussian mip pyramid) or Con`
- **Linear-space rendering and gamma correction** (`linear-color-workflow`) [builtin · 0.0291ms T4] — `Project Settings > Rendering > Working Color Space (linear HDR rendering with sRGB and OpenColo`
- **Auto exposure from luminance histogram** (`auto-exposure-histogram`) [builtin · 0.0396ms T4] — `Post Process Volume > Exposure > Metering Mode = Auto Exposure Histogram`
- **ACES filmic tonemapping** (`aces-tonemapping`) [builtin · 0.0397ms T4] — `Project Settings > Rendering > Default Settings > Use Filmic Tonemapper (ACES-based filmic tone`

### Stylized, Foliage & Performance
- **Reverse-Z and floating-point depth buffers** (`reverse-z-depth-buffer`) [builtin · 0.0943ms T4] — `Reversed-Z floating-point depth buffer (FReversedZPerspectiveMatrix / SceneDepth across UE rend`
- **GPU grass blade rendering** (`grass-blade-rendering`) [builtin · 1.7176ms T4] — `Landscape material Grass Output node + Landscape Grass Type asset`
- **SDF and multi-channel SDF text rendering** (`msdf-sdf-text-rendering`) [builtin · 0.0517ms T4] — `SlateCore FontSdfSettings (FFontSdfSettings) for signed distance field glyph rendering`
- **Posterization** (`posterization`) [builtin · 0.052ms T4] — `Post Process Material (luminance/color quantization in PostProcessVolume)`
- **Sparse virtual texturing** (`virtual-texturing`) [builtin · 0.1157ms T4] — `Project Settings > Engine > Rendering > Virtual Textures; Streaming (SVT) and Runtime (RVT) vir`
- **Marching Cubes** (`marching-cubes`) [builtin · 0.123ms T4] — `Modeling Mode > Voxel tools (VoxelMerge / VoxelBlend / Solidify) and Geometry Script Solidify (`

## 6. Quantitative Look-Dev Gates & Mandatory Phase-2 Polish Pass

- **Roughness Contrast Gate:** Span `<= 0.06` (wet puddles, clearcoat, glass, polished metal) to `>= 0.88` (matte asphalt, plaster, fabric, dry bark) using paired PBR maps — never let a scene collapse into uniform `0.4–0.6` plastic.
- **Lighting & HDR Discipline:** Establish a clear warm-vs-cool focal hierarchy backed by prefiltered IBL + area lights; drive emissives at HDR `1.5–4.5` with bloom `threshold >= 0.92` so glow kisses sources without milky wash.
- **Silhouette & Framing Rule:** Never leave bare box primitives or unframed glowing rectangles; frame walls, eaves, signs, and openings with trim, bevels, conduits/cables, and grounded street/floor props, and verify curved UV orientation (`LatheGeometry` labels).
- **Mandatory Phase-2 Polish Pass:** After building v1, capture screenshots across Hero, Close-Up, and Grazing views, score all 8 checkpoints at https://texelatlas.vercel.app/guides/scene-audit.md (matching defects against https://texelatlas.vercel.app/api/v1/symptoms.json or MCP `texel_diagnose`), and execute a dedicated upgrade pass fixing your **3 weakest visual areas** before finishing.
