m4bwav/threewright
Evergreen three.js skills for AI agents: current r186 APIs (WebGL, WebGPU, TSL), a knowledge base of topics, scenarios, libraries, recipes and rules with release ranges so stale advice stays labelled legacy, verified starters (single-file, WebGPU, Vite, React Three Fiber, 3D chart, video turntable, Rapier game), and a zero-dependency Node CLI that checks pages headlessly as text first (errors, scene numbers, pixel evidence), lints stale APIs against the installed release, reports glTF models, and records frame-exact video.
Changelog
Plugin versions. Skill-level changes are in each skills/*/CHANGELOG.md; the session record is ai-docs/log.md.
1.16.0 · 2026-11-22
- kb
performance: cull effects (particles, decals, fog volumes) by projected size like LOD levels, rebase the origin in large worlds (points to the geospatial TAA note), and render ray-marched fog at reduced resolution with r186setResolutionScale. Measured in headless Chrome at 1920x1080: 3.29 ms full, 0.71 ms half, and empty-space clipping helps only when the step count follows the clipped length. Technique from a Reddit post on an underwater sandbox, re-measured.
1.15.0 · 2026-11-21
- threewright-assets: free CC-BY sources now name vinish.dev/free-3d-models (469 GLB models, CC BY 4.0) and Poly Pizza, and point to polywright's list of big free libraries.
1.14.0 · 2026-11-21
tw shotwrites<file>.view.jsonbeside every capture (camera type, position, quaternion, up, fov, zoom, page time) and prints aview:line;--view <file>.view.jsonon shot and sheet reopens that view. Measured on the html-importmap template: a reopened view differs from the original by 0.095% (the knot keeps spinning), the default view by 28.8%. threewright-debug Step 3 takes after-shots with--view; geospatial scenario notes that temporal AA must see the camera's travel when the origin is rebased. Technique from a Reddit post on a Claude Code planet renderer in Unity, written fresh.
1.13.0 · 2026-11-21
- threewright-shaders
references/lighting-and-transparency.md: rim lighting with matched spaces, Ashikhmin-Shirley hair, tangent requirements, one sRGB conversion, clamp order, stencil portals, double-sided alpha sorting and dithered distance fade, with three.js names checked in the 0.186.1 source. Methods from The Godot Shaders Bible (Espindola, v0.11, ch. 2 and 4), written fresh.
1.12.0 · 2026-11-20
- threewright-shaders
references/ray-tracing-in-shaders.md: for ray tracers and ray marchers written in GLSL or TSL, a ray-origin offset along the geometric normal in float steps (shadow acne), a precise ray/sphere test, environment mip level from ray spread, running-mean accumulation in float render targets, and delta tracking for volumes. Every block compiles ontests/fixtures/pages/ray-tracing, whosertMeasure()gives the quoted numbers (a fixedtMinof 1e-4 marks 42% of a ground plane as shadowed 10,000 units out, the offset 0%; the textbook sphere fills the frame where the stable form lands within 0.1% of the expected area); a browser test asserts them. - threewright-shaders
references/sampling.md: which sampler and pdf (cosine hemisphere, concentric disk, cone for sphere lights, triangle, environment-map CDF, VNDF over plain GGX), the four-times-samples rule, and fireflies (clamp versus path regularization, three-gpu-pathtracerfilterGlossyFactor). The JS samplers are histogram-checked intests/sampling.test.mjs. - threewright-debug symptoms: shadow acne in a custom ray tracer, a hard bump terminator, jitter far from the origin.
clay-material.md: the bump terminator fix as a documented option, unverified. - Methods from Ray Tracing Gems (Haines and Akenine-Moller, eds., 2019, CC BY-NC-ND 4.0), chapters cited in each file; written fresh, no code or equations copied.
1.11.0 · 2026-11-20
tw feel <page> [--actions ...] [--seconds 5] [--fps 60] [--box name=x,y,w,h ...] [--player "<js>"] [--pixels] [--band x,y,w,h] [--probe "<css>"] [--out dir] [--json](scripts/lib/feel.mjs): game feel as numbers. The page runs on the virtual clock and every frame is read (a small screenshot, and on a three.js page the main camera). Reports input to response per key or click (per box or the whole frame; on three.js pages also frames until the camera leaves its extrapolated path by 0.05 and 0.5 units), freeze runs inside motion (hit-stop), flashes (hold, fade ms, fade shape; FAIL above 3 in any 1 s), shake bursts (camera: residual after a centred 9-frame median, frames, ms, peak units, px at the subject depth, degrees;--pixelsor no camera: phase correlation of a band, two-pass median detrend, peak px x and y), FOV range, per-box rise and decay to 63% and 90% with curve shape (linear, ease-in, exponential, cut) and update periods, camera-hides-player share with--player(a world-box test between camera and player; FAIL above 2% of frames or a run over 1 s), and--probeclass spans. Exits 1 on FAIL. The camera is read through tw's per-instancerenderer.renderwrapper: three r169+ assignsrenderon each instance, so prototype hooks never fire.tw play --delays 0,300: one run per reaction delay (ms between decision and input) and a difficulty read (decorative, delay-matters, fast-fails).--softlock S: statussoftlockwhen frames advance and input is sent but position and score stay put for S s (windows are reported on every run with a 3 s window).result.jsongainsfirstScore(tick and time the score first rose),scoreandsoftlocks; score and position are read from common state shapes.tw shot --metrics: advisory look numbers (colour entropy, dominant colour share, edge density, contrast) withlow:notes under 3.0 bits, over 60%, under 0.04 and under 60. Never a failure.tw checkandtw perfprint a warning when the GPU string is SwiftShader or another software renderer;tw perfprints it before any frame time.- threewright-games done checklist: line 14 must show active play, not a title or menu; new line 14b (
tw feel), 14c (a URL flag such as?stage=Nthat jumps to a stage), 12a gains--delaysand--softlock, and a SwiftShader note on frame-time lines. - Fixtures
feel-3d(three.js chase camera),feel-2d(Canvas 2D),feel-box,play-track,play-hazard, written fresh; tests intests/feel.test.mjsandtests/play.test.mjs. - Methods from the 2026-11 web-game technique harvest (five published games and game-making skills measured on screen); numbers and methods only, no code, art or names in fixtures or docs. Sources: op7418/guizang-game-skill (AGPL, README ideas only), larryzpl123 Skybreak Protocol, dcjaychou Design Ridge Run, vitaminclaude Voidstruck (PolyForm Strict, played and measured only), efeislekel game-forge-claude-skill (no licence, ideas only).
1.10.0 · 2026-11-20
tw play <page|dist> [--bot bot.mjs | --monkey] [--seconds 60] [--seed 1] [--stuck 5] [--out dir](scripts/lib/play.mjs): closed-loop play. Each tick it reads the state (--state,__game.snapshot(),__game.state(),render_game_to_text(), or a frame hash), asks a bot'sdecide(state, ctx)or a seeded random monkey for an action in the--actionsgrammar, and sends it. Writestrace.jsonlandresult.json(done, fail, timeout, crash, stuck) andfail.pngat the failure tick; exits 1 on crash, stuck, fail or an uncaught exception. Stuck means the state or frame unchanged for--stuckseconds, no animation frame for 2 s, or a main thread that stops answering. Fixturesplay-clean,play-throw,play-freeze,play-bot;tests/play.test.mjscovers crash, stuck, clean timeout, same-seed determinism, a bot run and the frame-hash fallback.- threewright-games done checklist line 12a: a play soak over three seeds plus a goal bot.
- The bot-runner loop (snapshot, decide, act, a trace line per decision, one status file) follows VibeGame, arXiv:2610.33106 (Apache-2.0 code); written fresh from our notes, nothing copied. Stuck detection, the uncaught-exception hook and the monkey policy are additions.
1.9.0 · 2026-11-19
- threewright-shaders: Book of Shaders fragment rules in kb
tslandseeded-randomness, andtw lintrulesglsl-float-int-literal,glsl-step-visible-edge,glsl-unwrapped-time(73 lint rules). - kb from Real-Time Rendering 4e: bottleneck test order and ms-not-fps in
performance, PBR value ranges and specular aliasing inmaterials, perspective aliasing and bias order inlighting-and-shadows; threewright-debug symptoms rows for sparkling highlights and TRAA trails.
1.8.0 · 2026-11-19
- threewright-shaders
references/clay-material.md: a clay look patched intoMeshStandardMaterialwithonBeforeCompile(ridge pattern bumped into the normal, roughness 0.98, metalness 0), when to patch a stock material versus writing aShaderMaterial, and thecustomProgramCacheKeypitfall: one versioned key per GLSL variant (clay-v1:rings). Fixturetests/fixtures/pages/clay; tests check the block and that two programs compile. - threewright-games
references/mobile-shell.md: turn-sideways prompt for landscape games on portrait phones, a no-WebGL fallback page with links to the game, a PWA manifest, and a loading screen with flavour text. Fixturetests/fixtures/pages/mobile-shell; tests check the blocks andtw check. - Both ideas seen in a commercial web game demo; written fresh, nothing copied.
1.7.0 · 2026-11-19
- kb recipe
pixel-art-render-target: pixel art and pixel-3D through a smallWebGLRenderTargetwith a bleed margin, a camera snapped to whole art pixels, a sub-pixel offset applied at upscale for smooth pans, and a sharp-bilinear upscale shader for fractional scales. Checked withtw check,tw lintand twotw shots. Ideas from the Murder engine (isadorasophia/murder, MIT) and Cole Cecil's 2017 post on scaling pixel art; written fresh.
1.6.0 · 2026-11-18
- threewright-shaders
references/hit-effects-tsl.md: the six hit-effect recipes (shield, capsule bullet holes, depth-Laplacian outline as aRenderPipelineoutput, nested beam, black hole, octave-offset fbm) in TSL forWebGPURenderer. Every block is intests/fixtures/pages/hit-fx-tsl; a unit test keeps them identical and a browser test runstw checkon it (WebGPU backend, no errors, pixels drawn). - Shield overcharge veins in both GLSL and TSL: thin lightning lines where sin-warped fbm crosses its middle value, driven by
uOvercharge/overcharge. Idea from sloppysteaks69/GPU-Bandits (no licence); written fresh. - Noted in the TSL file:
vec3(new Color())renders black, usecolor().
1.5.0 · 2026-11-18
- threewright-shaders
references/hit-effects.md: GLSL recipes for a shield showing four hits at once (travelling rings, hex lattice, holes and red shift as strength drops), world-space capsule bullet holes (discard, glowing burnt rim, charred back faces), an ink outline from the depth Laplacian normalised by the largest nearby depth, a beam of three nested additive cylinders, a black-hole disc (polar swirl noise, Doppler-bright side, lensed arc, photon ring) and fbm with per-octave offsets and lacunarity 2.03. Every block is intests/fixtures/pages/hit-fx; a unit test keeps them identical and a browser test checks all five programs link. - Ideas from sloppysteaks69/GPU-Bandits (github.com/sloppysteaks69/GPU-Bandits, no licence) and vitaminclaude/voidstruck (github.com/vitaminclaude/voidstruck, PolyForm Strict). No code was copied; everything here was written fresh.
1.4.0 · 2026-11-18
tw lintrulesetEffects-output-pass(warn): anOutputPassinsideWebGLRenderer.setEffects([...])tone-maps twice. kbpost-processing: the r182 built-in effects route (outputBufferType: HalfFloatType,setEffects, emissive above 1 for bloom). 70 lint rules.- game-starter:
?manualruns no animation loop and__game.advance(seconds)steps whole ticks then renders, so shots are repeatable; done-checklist line 14a. - kb
transparency-and-blending: player behind walls (GreaterDepthsilhouette) and fake light pools (additive discs, depth test off, drawn right after the ground). - kb
geospatial-and-globes: polygons and loops on a sphere (gnomonic point in polygon, great-circle arc crossings);templates/globe/sphereMath.mjswith a Node test. - threewright-games
references/hud-and-minimap.md(planet minimap, far-side pointers); threewright-shadersreferences/particles.md; kbbundle-size: one line on single-file esbuild bundles. - Ideas from robinduckett/boo-mas (github.com/robinduckett/boo-mas). It has no licence, so no code was copied; everything here was written fresh.
1.3.0 · 2026-11-14
tw perf --fly(fixed camera path) and--target-ms(fail when p95 is over). Test added.- threewright-games
references/render-critic.md: blind screenshot-only critic loop; done-checklist lines 15a and 15b. - kb
generative-art: detail presets,prompt.txt, path-based perf; kbperformance: the new flags. Ideas from the Abyssal Garden thread (r/ClaudeAI, 2026-11).
1.2.0 · 2026-11-11
- kb recipe
fft-ocean: Tessendorf FFT ocean patch on the CPU (choppy displacement, Jacobian foam) driving a TSLpositionNode, a boat floated from 4 hull samples, and quality tiers that step down when frames run long; notes on moving the FFT to GPU compute with one-frame-late readback. Ideas from the web-ocean-3d demo (r/aigamedev, 2026-07, no stated licence), code written fresh. 93 entries.
1.1.0 · 2026-11-10
tw look <render> <reference>: colour-grade match 0-100 from OKLab statistics (brightness, tint, chroma, hue, contrast, detail), composition-independent, with--sheetside by side,--mingate and--fit look.cube(a 3D LUT fitted toward the reference, re-scored). Idea from pittasavors7/RedditReferenceTest (MIT / Apache-2.0), re-implemented. Checked on graded pairs from real renders: scores fall in order as the grade worsens, and the fitted LUT raised a badly graded render by 54 to 68 points.- kb recipe
tsl-loom-warp: far landmarks loom at full height via a TSLpositionNode, with the shadow, picking, physics and culling caveats. 92 entries.
1.0.0 · 2026-11-09
- First stable release. No change in behaviour from 0.6.8; the
twCLI, templates and knowledge base layout are now treated as stable, so breaking changes will need a 2.0.
0.6.8 · 2026-11-01
- threewright-games Step 2 rule 1 explains the hidden-tab delta jump that
THREE.Clockhas and a connectedTHREE.Timeravoids, the delta clamp and render interpolation (Gregory, Game Engine Architecture 2e, 2014).
0.6.7 · 2026-10-26
tw --helplistsglb --strictand its warning exit code, covered by a CLI test.- Browser tests check
--save/--againston a static fixture. The animated starter could change its pixel coverage between two launches on a busy machine; the separate perf test still measures that starter. - README knowledge-base and lint counts now match 0.6.6: 91 entries, 25 topics, 69 lint rules. The handoff records the current release and the unresolved scene observation.
- The glTF Transform library entry now pins CLI 4.5.1, confirmed from npm registry metadata, matching the existing recipe pins. Its source/API review and extension caveats remain explicitly scoped to 4.5.0.
0.6.6 · 2026-10-26
- Round 2 books track (CGPP 3e, Gambetta): kb topic
transparency-and-blending(coverage, transmission, glow, sorting); pitfalls for LOD switching by projected size, pixel-art texture filtering and anisotropy, composer MSAA, depth precision and shadow acne;tw lintnotecomposer-without-aa(it fired on the bloom-webgl recipe, now fixed with a multisampled target);tw glbwarns on BLEND double-sided materials and texture sides not a multiple of 4. tw glb: draw calls are counted per node that draws a mesh (a mesh reused by 150 plain nodes is 150 calls, anEXT_mesh_gpu_instancingnode is one); it counted one per mesh before. A warning names 50 or more nodes that repeat a mesh and how to instance them.- kb
models-for-the-webPitfalls: Blender Geometry Nodes scatters needexport_gpu_instances, Smooth by Angle needs modifiers applied, flipped faces show as holes. Checked on Blender 5.2.1 and three 0.186.1. - kb topic
models-for-the-web: what a glTF model must be for three.js (PBR and ORM, KTX2, meshopt or Draco, budgets, LODs, lightmaps onuv1, styles, pivots, failure modes), pointing to polywright for making and fixing models; threewright-assets Step 2 links it. - threewright-assets: with the polywright plugin installed, models to make, find, capture or fix come from polywright's asset folder (
web-threejstarget, files fromout/permanifest.json).
0.6.5 · 2026-10-05
-
Copilot-ready: a root
plugin.json(Agent Plugins 1.0 shape:$schema, at most 10 lowercase-hyphenated keywords, author URL) so GitHub Copilot CLI and the awesome-copilot marketplace find the plugin; the awesome-copilot intake gates look only at.github/plugin/,.plugin/or the root, never.claude-plugin/. Claude Code still reads.claude-plugin/plugin.json; keep both versions equal. Installed with Copilot CLI 1.0.92 andvally lint(0.17.0) passes. The release tag v0.6.5 is the ref awesome-copilot pins. -
tw lintruletyped-buffer-attribute-copies(info): flags aFloat32BufferAttribute(or another typed subclass) made from a variable that the same function writes again later. Those classes copy the array, so the later writes never reach the GPU, silently (LEARNINGS L-20261004-1; it cost markdavidrogers-web PR #37 its whole road for a round of screenshots).
0.6.4 · 2026-10-04
Nothing to install with the plugin.
package.jsonandpackage-lock.jsonmoved from the plugin root todev/. The Claude directory held 0.6.3 for content policy review because Claude Code would install from a root lockfile when a user installs the plugin; the only dependency was the dev dependency three, used by the tests. Runnpm installandnpm testindev/.tw(CDN serving,tw newasset generation,tw deprecations), the browser tests andevals/headless/run.pyfind three indev/node_modulesas well asnode_modules, and still fall back to the tw cache ornpm pack.
0.6.3 · 2026-10-03
Prepared for the Claude plugin directory, which takes no binary files except images and no files over 256 KiB.
- The product-viewer model.glb and the splats scene.splat are no longer in the repository.
tw newwrites them in the new folder from the template's own script (make-model.mjs, make-splat.mjs), listed undergeneratein template.json; the model's three 0.186.1 comes from node_modules, the tw cache ornpm pack. Both come out byte for byte the same as the files they replace. The browser tests andevals/headless/make-inputs.mjsgenerate them the same way. - Every
npxandnpm createcommand in the knowledge base names an exact version:@gltf-transform/cli@4.5.1,gltfpack@1.3.0,@iwsdk/cli@1.0.1,npm create @iwsdk@1.0.1. The globe-gl texture URL names three-globe 2.45.3. - plugin.json gains homepage, documentationUrl, supportUrl and privacyPolicyUrl; the README gains a Privacy section listing every network route.
0.6.2 · 2026-09-26
Less to run, one trigger gap closed.
- Outcome cases the no-plugin baseline also passes are marked
redundantin evals.json (8 of 10 skills; games and curate keep theirs).evals/headless/run.pyskips them unless--all, so a full pass is 37 runs instead of 69. - threewright-r3f's description covers checking that an R3F app builds and runs; the case that missed now fires the skill 3 of 3.
- XR is dropped from the plan.
0.6.1 · 2026-09-26
The eval pass is complete, with a harness in the repo so the next one is one command.
evals/headless/:run.pyruns every action and outcome case throughclaude -p --plugin-dirin fresh workspaces (3 runs each plus a no-plugin baseline, resumable), andgrade.pygrades them on the trace and the disk into evals/results/headless-latest.md.make-inputs.mjsregenerates the input models and CSV.- Result (69 runs, $39): every skill's action and outcome cases pass 3 of 3 through the Skill tool, except r3f outcome-1, where run 3 fired no skill. Baselines without the plugin also pass most outcome cases, so the plugin's measurable difference is the verified
twstep (action cases). - threewright-curate edits the knowledge base of a git checkout, never the installed plugin copy (which Claude Code refuses to edit and an update would overwrite).
- Outcome cases no longer grade the reply's wording (quotes, alt text, driver names): only files, exit codes and trace calls.
0.6.0 · 2026-09-26
product-viewer ships with no CDN requests, the decoder advice agrees with r186 everywhere, and a partial eval pass through the Skill tool.
tw vendoralso copies the files a vendored module fetches bynew URL('<relative>', import.meta.url). That is how r186's DRACOLoader and KTX2Loader find their WASM decoders, so vendoring them bringslibs/draco/andlibs/basis/along. These files are copied, not scanned for imports.- product-viewer is marked
"vendor": true, sotw newvendors it (21 files, 4.3 MB). It no longer sets a CDN transcoder path; both decoders load from next to their loaders. A Draco model and a KTX2 model check OK undertw check --cdn offline, and no CDN URL is left in the page. tw glbneeds lines andtw checkfix hints no longer tell you to callsetDecoderPath(...)orsetTranscoderPath(...). The load-gltf-with-decoders recipe comments the transcoder path out, and loaders-and-assets no longer says KTX2 "still needs" one.- Knowledge base: the games, video-and-turntables and generative-art scenarios no longer call game-starter, video-turntable or html-webgpu's WebGPU backend unverified, since their template.json records verified runs. video-and-turntables now points
template:at video-turntable. - Evals: 28 of a planned 70 headless runs through
claude -p --plugin-dir. The Skill tool fired in all 25 with-plugin runs. Stopped on a harness fault and a classifier refusal; details and follow-ups in evals/results/2026-09-26-headless.md.
0.5.0 · 2026-09-26
The scroll-hero gaps from the eval runs, and the bounds warnings that misfired on landscapes.
tw vendor <dir|page.html> [--offline] [--dry-run]: copies the pinned jsDelivr and unpkg modules a page imports, and their own relative and mapped imports, intovendor/<name>@<version>/, then points the import map at the copies. Only reached files are copied (scroll-hero: 9 files, 2.4 MB). Bytes come from node_modules, the tw cache ornpm pack, never the CDN.tw newvendors templates marked"vendor": truein template.json (scroll-hero);--no-vendorkeeps the CDN import map.- scroll-hero follows threewright-web's Step 2: a
<picture>poster (wide and tall, start and final view, 33 to 48 KB each) paints first, WebGL starts after first paint and the canvas fades in once a frame is drawn; with reduced motion the view holds the final keyframe while the text scrolls (0 pixels change between top and bottom, checked withtw diff). tw shot --out x.jpg|x.webp [--quality 82]writes JPEG or WebP (for posters); pixel stats stay PNG-only.tw checkleaves backdrop objects out of the scene bounds: built-in materials withfog: falsein a fogged scene, and objects beyond a third ofcamera.faror spanning half of it. The bounds line says how many were left out. "The camera is inside the scene bounds" no longer fires for wide, flat bounds (a landscape or floor the viewer stands on). New fixturetests/fixtures/pages/landscape; the campfire demo now checks clean.
0.4.1 · 2026-09-26
First full run of every skill's eval suite (61 cases, all passed; evals/ at the plugin root), and the fixes it turned up.
- Evals: trigger and decoy cases through
claude plugin eval2.1.281 (3 runs per arm, no-plugin baseline), action and outcome cases through the evergreen tester with a no-skill baseline for each action case. Results inevals/results/; each skill's TESTS.md has the entry. - Fixed:
tw videoMP4s lost the BT.709 primaries and transfer tags with ffmpeg 9.0.1; they are now written into the H.264 stream (h264_metadata). WebM output is now tagged BT.709 too (VP9 carries the matrix only). - Fixed: a Git Bash path with a query string (
tw check "/c/.../page/?model=x.glb") was not found, because Git Bash skips its path conversion for arguments holding a?; tw maps/c/...itself on Windows. - product-viewer wires
KTX2Loader, so models fromgltf-transform etc1soruastcload (checked with a KTX2 model: texture shows,tw scenereadsmap:CompressedTexture/srgb). - color-management: Verify named a lint rule that never existed; it now points at
tw scene's map colour-space label.
0.4.0 · 2026-09-26
The last items of the tools research list, and the KTX2 texture steps checked with KTX-Software installed.
tw sheet --sweep "<expr>=a,b,c"(alsocheck --sheet f --sweep ...): one tile per value from the current view, labelled, with the old value put back afterwards.tw videosteps a page throughwindow.advanceTime(ms)when it defines one and no__tw.renderFrame; the driver prints aspage advanceTime().- tw shares an existing
__THREE_DEVTOOLS__hook (the three.js DevTools extension) instead of replacing it. - KTX-Software 4.4.2 installed on the Windows test machine;
gltf-transform etc1sanduastcran against a generated textured model andvalidatefound no errors.
0.3.0 · 2026-09-26
tw learns to drive a page and to find leaks and shader errors; six tw bugs from the 0.2.0 handoff are fixed.
--actions "key KeyW 500; click 480,270; drag ...; wheel ...; type ...; wait ..."on check, shot, sheet and video: trusted CDP keyboard, mouse, pointer and wheel input before measuring (virtual-clock waits in video).tw check --cycles N [--cycle "<js>"]: runswindow.__tw.cycle()or the js N times and fails on steady growth of geometries, textures or programs.tw shaders <page> [--dump dir]: WebGL programs with their materials and link status, a failing shader's error lines with source context, sources written to files.--labelson shot and sheet: name tags at projected object centres (duplicates as xN, overlapping tags pushed apart), with the legend printed as text.tw check --shot a.png --sheet b.png --tree: several outputs from one browser launch.tw checkprintsrender_game_to_text()output asgame:; game-starter now defines it.--color-scheme light|darkemulatesprefers-color-scheme; the light palettes of surface and globe are now shot and verified.- Local paths take a query string or hash (
tw check "page/?model=x.glb"). - Fixed:
tw glbbounds forKHR_mesh_quantizationmodels (normalized accessor min and max are raw integers). - Fixed: the aspect check reads the projection matrix, so a missing
updateProjectionMatrix()is caught. - Fixed:
tw scenenames a map's texture kind andNoColorSpaceinstead ofmap:(none). - Fixed:
tw video --capture canvasrecorded blank frames on render-on-demand pages; the last frame's screen passes are replayed when a step drew nothing. - Fixed: a flat-shaded object on a plain background (two colours with real coverage) was reported as a blank canvas.
0.2.0 · 2026-09-26
Second release: every planned template is built, every recipe has been run, and WebGPU has been verified on a real GPU.
- New templates, all verified on Windows 11, Chrome 153 and an RTX 5060 Ti: surface, globe, product-viewer (with a generated
model.glband itsmake-model.mjs), scroll-hero (GSAP 3.15.0, Lenis 1.3.26) and splats. - All ten recipes that had never been run now have been. Six needed fixes: environment-lighting leaked one geometry and one texture per swap; optimize-gltf's
--slotsvalues matched nothing in @gltf-transform/cli 4.5.0; dispose-a-scene, resize-and-pixel-ratio, keyboard-orbit-and-reduced-motion and upgrade-an-old-project needed corrections or missing steps. tw perf: frame-time percentiles, draw calls per frame, memory growth,--cpu-throttle.tw check --saveand--against: a text diff between two runs.tw shotandtw sheettake--evalto set a state before capture.tw checkpixel stats andshot --canvasmeasure the right area on a scrolled page.- RoomEnvironment is disposed after baking in html-importmap, html-webgpu and vite-ts.
tw check --evalbindsrenderer,sceneandcamerato the ones tw observed, so--eval "renderer.info.render.calls"works on pages that keep them module scoped (most do). The page's own globals still win.tw checkfails on three's own deprecation warnings (THREE.X ... deprecated), shown under their own heading;--strictalso fails on any other console warning. Warnings from other libraries still only print by default.tw checkignores a 404 for/favicon.ico(browsers request it on their own).tw checkbounds forGaussianSplatuse the splat cloud, not its quad geometry.- npm is spawned without the Node 24 DEP0190 warning on Windows (
scripts/lib/proc.mjs). - Browser tests build vite-ts, r3f and game-starter and check their
distwhen the template'snode_modulesexists. tw kb validatewarns on an em dash outside code fences (house style);--strictfails on it.- WebGPU verified on the real backend (Windows, Chrome 153, RTX 5060 Ti): the html-webgpu template and the bloom-webgpu, tsl-custom-material and webgpu-backend-check recipes.
- bloom-webgpu: lower emissive and bloom strength and add a directional light; the old values blew the whole frame out on both backends.
0.1.0 · 2026-09-26
First release.
- CLI
scripts/tw.mjs(Node 22+, no dependencies):- verification:
check(with pixel evidence and--eval),scene,shot,sheet,videoanddiff - static tools:
lint,deprecations,glb,kb,templates,new,versionsanddoctor - runs in containers and offline:
--cdn, Playwright Chromium,--no-sandboxas root
- verification:
- Knowledge base: 89 entries (23 topics, 13 scenarios, 30 libraries, 20 recipes, 3 rules) with release ranges and a current or legacy status. Nine one-page recipes were run through
tw check. 67 stale-API lint rules, with release numbers confirmed against npm tarballs; every r186@deprecatedmarker is covered or skipped on purpose. - Templates, all verified with
tw check: html-importmap, html-webgpu (WebGL 2 fallback only), vite-ts, r3f, chart-3d-scatter, video-turntable, game-starter. - Ten skills with evergreen files and eval suites. The suites are written but not yet run.
- Research notes for ten tracks in
ai-docs/research/.