Repository navigation
Releases
Releases · m4bwav/threewright
v1.16.0
v1.15.0
v1.14.0
threewright 1.13.0
What's Changed
- threewright-shaders: lighting, stencil and transparency reference from The Godot Shaders Bible by @m4bwav in #39
- Release 1.13.0 by @m4bwav in #40
Full Changelog: v1.12.0...v1.13.0
v1.12.0
- 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.
v1.11.0
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).
v1.10.0
tw play <page|dist> [--bot bot.mjs | --monkey] [--seconds 60] [--seed 1] [--stuck 5] [--out dir]: closed-loop play with a bot's decide(state, ctx) or a seeded random monkey. Writes trace.jsonl, result.json (done, fail, timeout, crash, stuck) and fail.png at the failure tick; exits 1 on crash, stuck, fail or an uncaught exception.- threewright-games done checklist line 12a: play soak over three seeds plus a goal bot.
- Bot-runner loop idea from VibeGame, arXiv:2610.33106; written fresh. Stuck detection, the exception hook and the monkey policy are additions.
v1.9.0
- 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.7.0
kb recipe pixel-art-render-target: small WebGLRenderTarget with a bleed margin, camera snapped to whole art pixels, sub-pixel offset at upscale for smooth pans, sharp-bilinear upscale shader. Ideas from the Murder engine (MIT) and Cole Cecil's 2017 post; written fresh.
threewright 1.6.0
- 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().