# TexelAtlas Unity 6 3D Look-Dev Playbook

> Compact, zero-truncation agent guide for building game-quality 3D scenes in **Unity 6** (URP / HDRP 17.x; verified against `Unity 6 (6000.3; URP/HDRP 17.3 source). HDRP-only features noted.`).
> 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 Unity 6 Pipeline Architecture

- 1. URP/HDRP Linear color space + `Volume` (`Tonemapping = Neutral` or `ACES`, selective `Bloom`, `Screen Space Ambient Occlusion` with `After Opaque`).
- 2. URP `UniversalRenderPipelineAsset` 4-cascade shadows (`Soft Shadows = High`) or HDRP `PCSS` + `Contact Shadows`.
- 3. Environment & reflections: Sky/HDRI Volume + `Reflection Probe` (with box projection for enclosed spaces), plus `Volumetric Fog` or `Planar Reflection Probe` where needed.
- 4. Enable `RenderGraph` pass merging, `SMAA` / `TAA`, and `Alpha Clipping` + `Alpha-to-Coverage` for alpha-cutout assets.

## 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) + `smaa` (builtin)

### 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**: `smaa` (builtin) + `khronos-pbr-neutral`

### 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) + `smaa` (builtin)

### 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**: `toon-shading` (official) + `inverted-hull-outline` (official) · **water/volumes**: `exponential-height-fog` (builtin) · **post/aa**: `smaa` (builtin) + `kuwahara-filter`

### 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) + `hex-tiling` (official) · **water/volumes**: `planar-reflections-oblique-clipping` (builtin) + `fft-ocean` (builtin) · **post/aa**: `dual-filter-bloom` (builtin) + `smaa` (builtin)

### 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) + `grass-blade-rendering` (builtin) · **water/volumes**: `exponential-height-fog` (builtin) + `nubis-volumetric-clouds` (builtin) · **post/aa**: `smaa` (builtin) + `temporal-anti-aliasing` (builtin)

## 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. Unity 6 Pitfalls & Pass Ordering

- Enable `Box Projection = true` on Reflection Probes in enclosed interiors so local specular reflections parallax accurately.
- Keep directional shadow distance tight to the visible camera zone to preserve crisp close-up shadow texel density.

## 5. Top Verified Unity 6 Built-In & Official Switches (133 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] — `Reflection Probe > Box Projection (ReflectionProbe.boxProjection)`
- **Split-Sum Image-Based Lighting** (`split-sum-ibl`) [builtin · 0.0613ms T4] — `Lighting > Environment; Reflection Probe (prefiltered GGX cubemaps)`
- **Environment mapping, cubemaps and skyboxes** (`environment-mapping-cubemaps`) [builtin · 0.1615ms T4] — `Lighting > Environment > Skybox Material (cubemap/panoramic); HDRP Volume > Visual Environment `
- **Linearly Transformed Cosines for Area Lights** (`ltc-area-lights`) [builtin · 0.2775ms T4] — `Light > Shape = Rectangle / Tube / Disc (HDRP area lights)`
- **Planar reflections with oblique near-plane clipping** (`planar-reflections-oblique-clipping`) [builtin · 0.6098ms T4] — `HDRP: Planar Reflection Probe`
- **Lightmap Baking** (`lightmap-baking`) [builtin · 0.8339ms T4] — `Window > Rendering > Lighting > Lightmapping Settings > Progressive GPU/CPU`

### Shadows & Ambient Occlusion
- **Screen-Space Contact Shadows** (`contact-shadows`) [builtin · 0.353ms T4] — `Volume > Add Override > Shadowing > Contact Shadows`
- **Percentage-Closer Filtering** (`percentage-closer-filtering`) [builtin · 0.6316ms T4] — `URP: Light > Shadows > Soft Shadows; HDRP Asset > Lighting > Shadows > Filtering Quality`
- **Ground-Truth Ambient Occlusion** (`ground-truth-ambient-occlusion`) [builtin · 1.1653ms T4] — `Volume > Add Override > Lighting > Ambient Occlusion`
- **Multi-Bounce Ambient Occlusion Approximation** (`multi-bounce-ambient-occlusion`) [builtin · 1.4436ms T4] — `HDRP: Volume > Ambient Occlusion (applied automatically in Lit shading)`
- **Percentage-Closer Soft Shadows** (`percentage-closer-soft-shadows`) [builtin · 1.6496ms T4] — `HDRP Asset > Lighting > Shadows > Filtering Quality = High (PCSS)`
- **Cascaded Shadow Maps** (`cascaded-shadow-maps`) [builtin · 2.1515ms T4] — `URP Asset > Shadows > Cascade Count; HDRP Volume > Shadows > Cascade Count`

### Materials, BRDF & Micro-Detail
- **Triplanar mapping** (`triplanar-mapping`) [builtin · 0.0423ms T4] — `Shader Graph > Triplanar Node`
- **Schlick Fresnel approximation** (`fresnel-schlick-approximation`) [builtin · 0.0514ms T4] — `Used by HDRP/URP Lit shading; Shader Graph Fresnel Effect node for authored use`
- **Anisotropic GGX** (`anisotropic-ggx`) [builtin · 0.0614ms T4] — `HDRP Lit > Surface Options > Material Type = Anisotropic`
- **Charlie sheen (Estevez-Kulla)** (`charlie-sheen`) [builtin · 0.0669ms T4] — `HDRP Lit/Fabric > Material Type = Fabric (Cotton/Wool)`
- **Disney principled BRDF** (`disney-principled-brdf`) [builtin · 0.0703ms T4] — `HDRP Lit material (DisneyDiffuse in BSDF.hlsl paired with GGX specular, clear coat, anisotropy,`
- **Clearcoat layer** (`clearcoat-layer`) [builtin · 0.0727ms T4] — `Lit > Surface Options > Clear Coat`

### Water, Fog & Volumes
- **Exponential Height Fog** (`exponential-height-fog`) [builtin · 0.0776ms T4] — `Volume > Add Override > Fog > Enable; Fog Attenuation Distance / Base Height / Maximum Height`
- **Real-time Water Caustics** (`water-caustics-realtime`) [builtin · 0.3065ms T4] — `Water Surface > Caustics`
- **FFT Ocean (Tessendorf)** (`fft-ocean`) [builtin · 1.1608ms T4] — `GameObject > Water > Ocean, Sea or Lake (HDRP Water System)`
- **Ray-marched Rayleigh/Mie Single Scattering** (`rayleigh-mie-single-scattering`) [builtin · 1.3947ms T4] — `HDRP Volume > Add Override > Sky > Physically Based Sky (PhysicallyBasedSkyCommon.hlsl evaluate`
- **Froxel Volumetric Fog** (`froxel-volumetric-fog`) [builtin · 11.0497ms T4] — `Volume > Add Override > Fog > Enable Volumetric Fog; Local Volumetric Fog`
- **Nubis-style Ray-marched Volumetric Clouds** (`nubis-volumetric-clouds`) [builtin · 110.3911ms T4] — `Volume > Add Override > Sky > Volumetric Clouds`

### Post-Processing, Tonemapping & AA
- **Temporal Anti-Aliasing** (`temporal-anti-aliasing`) [builtin · 0.1956ms T4] — `Camera > Rendering > Anti-aliasing = Temporal Anti-aliasing (TAA)`
- **SMAA** (`smaa`) [builtin · 0.2174ms T4] — `Camera > Rendering > Anti-aliasing = Subpixel Morphological Anti-aliasing (SMAA)`
- **Screen-space reflections** (`screen-space-reflections`) [builtin · 0.5894ms T4] — `Volume > Add Override > Lighting > Screen Space Reflection`
- **Dual-filter and progressive-downsample bloom** (`dual-filter-bloom`) [builtin · 3.5692ms T4] — `Volume > Add Override > Post-processing > Bloom > Filter = Dual (or Gaussian/Kawase)`
- **Linear-space rendering and gamma correction** (`linear-color-workflow`) [builtin · 0.0291ms T4] — `Project Settings > Player > Other Settings > Color Space = Linear`
- **Auto exposure from luminance histogram** (`auto-exposure-histogram`) [builtin · 0.0396ms T4] — `Volume > Add Override > Exposure > Mode = Automatic Histogram`

### Stylized, Foliage & Performance
- **Reverse-Z and floating-point depth buffers** (`reverse-z-depth-buffer`) [builtin · 0.0943ms T4] — `Automatic on supported platforms; shader macro UNITY_REVERSED_Z`
- **GPU grass blade rendering** (`grass-blade-rendering`) [builtin · 1.7176ms T4] — `Terrain > Paint Details > DetailPrototype with useInstancing = true (GPU-instanced grass and fo`
- **Inverted-hull outlines** (`inverted-hull-outline`) [official · 0.0752ms T4] — `Unity Toon Shader > Outline > Outline Mode = Normal Direction`
- **Toon / cel shading with lighting ramps** (`toon-shading`) [official · 0.2921ms T4] — `Package Manager > Unity Toon Shader (com.unity.toonshader) > Universal Render Pipeline/Toon`
- **Posterization** (`posterization`) [builtin · 0.052ms T4] — `Shader Graph > Artistic > Adjustment > Posterize node`
- **Sparse virtual texturing** (`virtual-texturing`) [builtin · 0.1157ms T4] — `HDRP Asset > Streaming Virtual Texturing; Shader Graph Sample Virtual Texture node`

## 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.
