Phylomorph design review · 5 December 2026 · revised after orin (verdict: accreting, fixes below taken)
The plant study and the body explorer each drew with code of their own: a switch on what kind of thing this is (leaf, vein, bark, petal; skin, bone, garment). Every branch of those switches turns out to be one of a few general mechanisms reading a few general values. Build those once, in the core, and each look works on every thing: lumpy ink lit like the body, a leaf in 3-D, veins in skin, a moon that is a lit sphere.
The bar: every capability below, at the originals' full sophistication. A capability is not ported until its original's picture is matched beside it, in every style, by day and by night.
This is the direction your last messages took (veins on a body, glowing meridians, translucent droplets, vessels inside soft tissue, lumpy ink lit like the body, a 3-D leaf), said as rules that can be applied to anything Phylomorph draws.
Six mechanisms and one buffer. Words already decided keep their meanings (thing, whole, place, drop, stroke, profile, material, number, frame, spring, depth's cues). orin reviewed the first draft; its corrections are folded in, and what it found the draft would have lost is now in the inventory.
Three ways to put ink in the buffer, all of them drops underneath, so all can divide and gather.
merge: 1.profile (the half-width along it; two sides allowed) and a new cross-section: how the surface rounds across it. Flat is a blade, round a stem or a tube, cupped a leaf; the field's own bulge is the default. It shapes the hard field's rise inward, so the normal comes from its slope, as ink's already does.tris (it already has them, for places) drawn as triangles, with a normal per drop. The body is drops at its vertices, so it too divides.Today it holds, per pixel: the field, colour, weight, warmth and the state's brightness and halo. It grows to hold what every mechanism reads:
Laid out once, for every writer, before any light is built. Cost: three or four more render targets; the bench decides which share.
Things nest today, each part in its whole. New: bones, each a pivot and a rotation; a drop turns about a bone by a share of its rotation (the study's continuous bend; the body's skinning is the same form with full shares, after a probe of the blending error). A plant's spine is bones; the skeleton is bones. Every motion is a mover on bones:
spring, given a period and damping: a blade 1.3 s, a seed head 2.7 s, lightly damped) plus its own flutter, less for far thingsThe CPU poses by the same sums as the GPU, so places and hits agree with the picture.
Lights are things (today). On a surface each light gives, by the values alone:
lit)exp(−thickness / scale) × translucency × tint. The explorer uses it as is; the study's per-vertex amounts are converted to thickness where strokes are written, and a probe shows the fit within 1/255. Its depth and night factors move to depth's cues and the palette.The axes stay: colour, opacity, outline, translucency, glow, lit, merge, tint. One addition: pattern, a list of terms, each source → curve → mask → axis by an amount. A source is noise keyed by the number, a coordinate (along, across, distance to the edge, rest position) or data (the moon's seas, twenty discs and Tycho); the curve is any smooth curve (a Gaussian band for a crease, a step for a margin); the mask is itself a pattern (lichen only on old wood, away from the edge); the axis is colour, thickness or normal. "Fanned from the base" is a coordinate, not a case. Closed under itself, so not a table.
Veins are strokes on their leaf, with their own material: pale in front light, ink lit from behind, opacity rising with the light through, as the study draws them; and they add thickness. Meridians and vessels are the same, at places on skin, or inside it in 3-D.
Edges are one detector on the buffer: a step in coverage (silhouette), in depth (contour), in normal (crease), in part or layer (hem, seam). A style weights each. Today's outline is the silhouette weight; the study keeps one: bark's faint dark edge.
Depth's cues (the decided word) are one function of depth for everything: haze toward the horizon, softness, and focus (the study: sharpest near depth 0.85, the very nearest soft again).
The size rule sets detail by size on screen, everywhere: vein levels, the moon's seas from 6 px, a bone's outline from 4–10 px, creases from 30–60 px, the veil's coarseness.
A style is weights on material, light and edges plus its compositing rule. The explorer's Silhouette, Contour, Transparent, Ink and Glow and the core's styles are the same table.
| In the originals | Was | Becomes |
|---|---|---|
Study: kind 0–6 in the fragment shader | a switch on leaf, vein, bark, rim dot, petal | values: thickness, cross-section, pattern, a vein's own material, outline, the compositing rule; no kinds |
| Study: leaf turning over | the vertex shader narrows the stroke through zero and sets an under flag | a 3-D stroke's orientation turning, never below 0.12 of its width; the underside is its back face, a material axis |
| Study: bark lit round, faint dark edge | bark-only code | a round cross-section lit by the sun, plus its outline (the faint fixed edge) |
| Study: veins dark backlit, pale in front | vein kinds 2 and 3 | strokes with their own material (pale in front, ink behind), adding thickness |
| Study: petal striation, crease, margin | petal-only noise | pattern terms: noise, a band across, a margin step |
| Study: rim on thin edges | a uniform per kind | light's rim term on every surface |
| Study: the veil, laid again between three depth bands | a framebuffer the leaf shader samples | light from behind: the scene at coarse detail, by bands of depth |
| Study: moon phase, terminator, earthshine, seas | a 40-line moon shader | a sphere lit from a direction given by the date's phase, hard terminator; rim and earthshine terms; seas a data pattern |
| Study: hills, sun disc, stars | a painted backdrop | things at depth: hills are strokes in haze, the sun a glowing drop, stars drops |
| Study: two bones a stroke, air springs | per-stroke attributes | bones turning drops by a share of their rotation; air a scene input; a bone's answer a sum of springs |
| Explorer: skinning (dual quaternions) | explorer-only | bones, the same as the plants' |
| Explorer: contours, creases, hems | its own composite pass | the edge detector, every thing |
| Explorer: key light and soft shadow | a fixed light from above left | the scene's sun (a style may hold it fixed); shadow by depth, every thing |
| Explorer: bones under skin, skin under clothes | passes inked at a set strength | light from behind through a translucent layer |
| Explorer: style switch (opaque, ink over ground, see-through, bones) | a switch on the style number | the compositing rule, one axis of a style |
| Study and explorer: three shadows | ray walk, occlusion ring, ink's offset shadow | one walk through depth with the ground in it |
| Explorer: feature strokes, meridians | ribbons in screen space | strokes at places on the mesh, carried by its bones |
| Core: mercury ink | lit by a slope guess | the same light as the body: front, rim, through, shadow |
Core: light and glow | two ways to give light | one: glow is light, kept apart from opacity; a pure light is a glowing drop no one sees |
The checklist for "no compromises". have works in the core today; part started; to build. Each row is done only beside its original's picture.
| Capability | Mechanism | State |
|---|
| Capability | Mechanism | State |
|---|
| Capability | Mechanism | State |
|---|
| Capability | Mechanism | State |
|---|
| Capability | Mechanism | State |
|---|
Each cell is a test that draws the kind with the mechanism and checks it against a reference picture. Today most of the table is empty; when it is full, rule 4 holds.
| Mechanism | Drops | Strokes | Mesh | Lights and sky |
|---|
cross-section (how a stroke's surface rounds across it; not "section", the docs' word for their parts), orientation (how a 3-D path turns; not "frame", which is an animation frame), back face (not "underside", near Sides), bones (pivot and rotation), air (the moving air only), pattern and its terms (not "layers": a layer is a garment's). Reused, not added: spring (the core's, given a period and damping), depth's cues for haze and focus, ink buffer for the per-pixel record, the size rule. Kept: surface, number, profile.Each step ends with the reference rig's diff, every style by day and night, the bench, and a merge. The hard edge and tint are already in.
node scripts/reference.ts shoot, then diff). 55 shots, every one drawn twice and steady within one level: the study's hero, air, interface, grass and seedling views at day, dusk and night with the sun ahead and behind; the explorer's five styles by day and night, skin and bones, and its five palettes. About 2.7 minutes for all, seconds for one view with --only.plants.ts, view by view, with numeric tests.light into glow removes a word and a path, and changes every page that places a light. Recommendation: yes, decided in step 2, before light is built.