{"built_at":"2026-12-02T03:03:02.501Z","url":"https://texelatlas.vercel.app/bench/","version":1,"name":"TexelBench","description":"Reproducible 3D scene generation benchmark for AI coding agents and rendering pipelines: 10 canonical multi-genre challenges scored on zero shader/JS errors, GPU frame timing, material/lighting look-dev gates, and 3-angle visual craft.","challenges":[{"id":"cyberpunk-rain-alley","title":"Rain-Slicked Cyberpunk Ramen Alley","genre":"Sci-Fi / Night / Urban","archetype":"scifi-night-neon","engine_targets":["threejs","webgpu","babylonjs","godot","unity","unreal"],"status":"verified-run","prompt":"Build an interactive 3D rain-slicked Tokyo/cyberpunk alleyway ramen shop & vending machine corner at twilight-into-night — featuring wet asphalt puddles, glowing paper lanterns & neon signs, weathered brick & corrugated metal shutters, a warm wooden counter interior visible through glass, rising steam/haze, and crisp shadows & reflections.","cameras":["hero","closeup","grazing"],"key_techniques":["split-sum-ibl","ltc-area-lights","ground-truth-ambient-occlusion","clearcoat-layer","anisotropic-ggx","planar-reflections-oblique-clipping","agx-tonemapping","dual-filter-bloom"]},{"id":"daylight-architecture","title":"Sunlit Colonnade & Stone Plaza","genre":"Outdoor Architecture","archetype":"outdoor-architecture","engine_targets":["threejs","webgpu","godot","unity","unreal","blender"],"status":"open","prompt":"Build a walkable sunlit stone colonnade and civic plaza spanning 40m with crisp near-to-far shadows, carved relief arches, non-repeating flagstones, warm-vs-cool sky bounce, and aerial depth.","cameras":["hero","closeup","grazing"],"key_techniques":["hillaire-sky-atmosphere","cascaded-shadow-maps","ground-truth-ambient-occlusion","multi-bounce-ambient-occlusion","parallax-occlusion-mapping","hex-tiling","exponential-height-fog","agx-tonemapping"]},{"id":"automotive-turntable","title":"Automotive Studio Look-Dev Turntable","genre":"Interior / Product","archetype":"interior-product","engine_targets":["threejs","babylonjs","unity","unreal","blender"],"status":"open","prompt":"Build a photoreal sports-car studio turntable inside a dark cyclorama with overhead softbox RectAreaLights, multi-layer clearcoat metallic paint, anisotropic machined wheels, dark smoked glass, and color-exact PBR Neutral tonemapping.","cameras":["hero","closeup","grazing"],"key_techniques":["split-sum-ibl","ltc-area-lights","contact-shadows","clearcoat-layer","anisotropic-ggx","thin-film-iridescence","khronos-pbr-neutral","smaa"]},{"id":"stylized-npr-forest","title":"Stylized Cel-Shaded Forest Shrine","genre":"Stylized / NPR","archetype":"stylized-npr","engine_targets":["threejs","godot","unity","unreal","blender"],"status":"open","prompt":"Build a cohesive stylized anime/painterly forest clearing with stepped toon lighting ramps, crisp silhouette outlines, shimmer-free foliage canopies, dappled ground shadows, and warm atmospheric haze.","cameras":["hero","closeup","grazing"],"key_techniques":["toon-shading","inverted-hull-outline","hashed-alpha-testing","kuwahara-filter","cascaded-shadow-maps","exponential-height-fog","agx-tonemapping"]},{"id":"coastal-ocean-dusk","title":"Coastal Lighthouse & Ocean at Dusk","genre":"Water / Coastal","archetype":"water-coastal","engine_targets":["threejs","webgpu","godot","unity","unreal"],"status":"open","prompt":"Build a rocky coastal headland and lighthouse at twilight overlooking animated deep ocean swells with Schlick Fresnel grazing reflections, shoreline foam/caustics, rotating lighthouse beam, and horizon atmospheric scattering.","cameras":["hero","closeup","grazing"],"key_techniques":["hillaire-sky-atmosphere","gerstner-waves","fft-ocean","fresnel-schlick-approximation","water-caustics-realtime","triplanar-mapping","agx-tonemapping","dual-filter-bloom"]},{"id":"scifi-corridor-volumetrics","title":"Orbital Station Airlock Corridor","genre":"Sci-Fi / Interior","archetype":"scifi-night-neon","engine_targets":["threejs","webgpu","babylonjs","godot","unity","unreal"],"status":"open","prompt":"Build a weathered sci-fi spacecraft airlock corridor with recessed ceiling light panels, brushed bulkhead armor, grated metal floor over glowing conduits, volumetric airlock haze, and viewport starfield.","cameras":["hero","closeup","grazing"],"key_techniques":["ltc-area-lights","ground-truth-ambient-occlusion","anisotropic-ggx","screen-space-reflections","froxel-volumetric-fog","agx-tonemapping","dual-filter-bloom"]},{"id":"character-lookdev-bust","title":"Portrait & Material Look-Dev Bust","genre":"Characters / Materials","archetype":"interior-product","engine_targets":["threejs","unity","unreal","blender"],"status":"open","prompt":"Build a 3-point lit bust and clothing study combining subsurface skin response, anisotropic hair highlights, woven cloth sheen, glossy eye cornea clearcoat, and tight contact shadows.","cameras":["hero","closeup","grazing"],"key_techniques":["pre-integrated-skin-shading","marschner-hair-scattering","charlie-sheen","clearcoat-layer","split-sum-ibl","percentage-closer-soft-shadows","khronos-pbr-neutral"]},{"id":"webgpu-compute-fluid","title":"WebGPU Real-Time Fluid & Caustics Basin","genre":"WebGPU / Compute","archetype":"webgpu-showcase","engine_targets":["webgpu","threejs"],"status":"open","prompt":"Build a native WebGPU / TSL interactive fluid basin with compute-driven heightfield ripples, reverse-Z depth precision, refractive floor caustics, and HDR AgX display at 60–120 fps.","cameras":["hero","closeup","grazing"],"key_techniques":["threejs-tsl-node-materials","reverse-z-depth-buffer","water-caustics-realtime","fresnel-schlick-approximation","agx-tonemapping","smaa"]},{"id":"retro-dither-ps1","title":"Retro Dithered Subway Platform","genre":"Stylized / Retro","archetype":"stylized-npr","engine_targets":["threejs","godot","webgpu"],"status":"open","prompt":"Build a moody retro low-fi underground subway platform combining ordered Bayer / blue-noise dithering, controlled color palette quantization, flickering fluorescent tubes, and readable silhouette geometry.","cameras":["hero","closeup","grazing"],"key_techniques":["ordered-dithering-bayer","blue-noise-dithering","posterization","n8ao","dual-filter-bloom"]},{"id":"volumetric-cloudscape","title":"Alpine Ridge & Volumetric Cloudscape","genre":"Terrain / Volumes","archetype":"terrain-foliage","engine_targets":["threejs","webgpu","unreal","godot","unity"],"status":"open","prompt":"Build a high-altitude alpine ridge overlooking rolling volumetric clouds at golden hour with triplanar rock slopes, non-repeating snowfields, multi-scattering sky, and aerial perspective.","cameras":["hero","closeup","grazing"],"key_techniques":["hillaire-sky-atmosphere","nubis-volumetric-clouds","triplanar-mapping","hex-tiling","cascaded-shadow-maps","exponential-height-fog","agx-tonemapping"]}],"runs":[{"id":"threejs-cyberpunk-alley-ab","challenge_id":"cyberpunk-rain-alley","title":"Three.js r187 Playbook Writing A/B/C Study","date":"2026-12-01","engine":"threejs","engine_version":"r187","model":"gemini-4-neon-high","hardware":"Apple M1 (ANGLE Metal WebGL2, 1280×720)","methodology":"Three independent blind subagents on the same model and identical prompt, each given only its assigned Three.js playbook variant. All scenes compiled and captured in headless Chromium on Apple M1 Metal WebGL2 across 3 identical camera presets (hero, closeup, grazing) with zero external CDN assets.","variants":[{"id":"variant-1","code_label":"Variant 1","short_name":"Baseline Prose Guide","guide_style":"Prose architecture bullets + archetype slug lists + upgrade table (pre-benchmark live guide)","visual_score":5.8,"errors":2,"warnings":60,"frame_ms":74.4,"draw_calls":1679,"triangles":340594,"lines":3542,"bytes":136357,"turns":15,"duration_s":909,"output_tokens":88218,"fresh_input_tokens":132558,"cache_read_tokens":1140419,"peak_context":112852,"gate_scores":{"lighting_ibl":7,"shadows":7,"ao":8,"materials":6,"closeup_craft":7.5,"macro_wear":2,"reflections_atmo":2,"tonemap_bloom":7},"verdict":"Two MeshPhysicalMaterial onBeforeCompile shaders failed to compile in Three.js r187 ('vNormal' undeclared, 'perturbNormal2Arb' overload mismatch), leaving the wet road a flat pink slab and brick walls untextured.","shots":{"hero":"/bench/cyberpunk-alley/variant-a-hero.jpg","closeup":"/bench/cyberpunk-alley/variant-a-closeup.jpg","grazing":"/bench/cyberpunk-alley/variant-a-grazing.jpg"}},{"id":"variant-b","code_label":"Variant B","short_name":"Code-First Snippets","guide_style":"Drop-in Three.js r187 wiring snippets (EffectComposer, GTAOPass, PMREM, Material table) without transparent-exclusion guard","visual_score":7.1,"errors":0,"warnings":2,"frame_ms":104.6,"draw_calls":1339,"triangles":42682,"lines":2482,"bytes":99331,"turns":17,"duration_s":559,"output_tokens":61106,"fresh_input_tokens":107757,"cache_read_tokens":1002753,"peak_context":93693,"gate_scores":{"lighting_ibl":8,"shadows":7.5,"ao":2,"materials":8.5,"closeup_craft":7.5,"macro_wear":8.5,"reflections_atmo":6.5,"tonemap_bloom":8.5},"verdict":"Fastest and cheapest run (−31% output tokens, −39% wall time) with sharp neon puddle reflections and crisp brick normals — but unexcluded transparent steam quads rendered as solid black occlusion blocks inside GTAOPass.","shots":{"hero":"/bench/cyberpunk-alley/variant-b-hero.jpg","closeup":"/bench/cyberpunk-alley/variant-b-closeup.jpg","grazing":"/bench/cyberpunk-alley/variant-b-grazing.jpg"}},{"id":"variant-2","code_label":"Variant 2","short_name":"Look-Dev Contract + Polish Pass","guide_style":"Hard quantitative visual gates (roughness spread 0.04–0.92, warm/cool hierarchy, zero bare boxes) + mandatory Phase-2 Polish Pass","visual_score":9.2,"errors":0,"warnings":2,"frame_ms":81.4,"draw_calls":1340,"triangles":168000,"lines":3262,"bytes":136014,"turns":28,"duration_s":852,"output_tokens":80009,"fresh_input_tokens":214496,"cache_read_tokens":2151430,"peak_context":186483,"gate_scores":{"lighting_ibl":9.5,"shadows":9,"ao":9,"materials":9.5,"closeup_craft":9.5,"macro_wear":9,"reflections_atmo":9,"tonemap_bloom":9},"verdict":"Clear winner (+3.4 visual pts, 0 errors, −9.3% fewer output tokens, −57s faster than Variant 1). Phase-2 Polish Pass added raking bulkhead sconce, pipe manifold + shutoff valve, wooden floor andon, parked bicycle, recessed upper windows, and puddle meniscus sheen.","shots":{"hero":"/bench/cyberpunk-alley/variant-c-hero.jpg","closeup":"/bench/cyberpunk-alley/variant-c-closeup.jpg","grazing":"/bench/cyberpunk-alley/variant-c-grazing.jpg"}}],"discoveries":[{"title":"Avoid brittle onBeforeCompile chunk patching in Three.js r187","detail":"Internal MeshPhysicalMaterial GLSL chunks (vNormal, perturbNormal2Arb) changed signatures in r187, causing Variant 1's wet-asphalt and POM brick shaders to fail compilation. Paired procedural PBR canvas maps, standalone ShaderMaterial/Reflector, or WebGPU TSL compiled with 0 errors."},{"title":"Hide transparent & particle meshes during GTAOPass","detail":"GTAOPass renders its depth/normal prepass with an override material that ignores transparent: true, turning steam billboards and glass into solid black boxes (Variant B). Wrapping gtao.render to hide userData.skipGTAO and transparent meshes eliminates the bug completely."},{"title":"Three.js r187 API removals caught by Metal WebGL","detail":"THREE.PCFSoftShadowMap was removed in r187 (use THREE.PCFShadowMap + shadow.radius) and THREE.Clock is deprecated (use THREE.Timer)."},{"title":"Quantitative gates + Phase-2 Polish Pass cut output tokens while jumping +3.4 visual pts","detail":"Variant 2 used 9.3% fewer output tokens and finished 57s faster than Variant 1 while adding layered silhouette craft, raking close-up light, and Fresnel puddle meniscus realism. Both Code-First snippets (B) and Numeric Gates + Polish Pass (C) are now merged into live /guides/threejs.md."}]}]}