Primary target surface
These rendering routes are generated from canonical source. Native-WebGPU acceptance remains separate from entrypoint availability.
Build curved-ray space effects in Three.js WebGPU/TSL. Use for artistic ray bending, Ellis wormholes, Schwarzschild black-hole lensing, accretion disks, physical thin-disk transport, or requests that need the Kerr/rotating-black-hole support boundary.
These rendering routes are generated from canonical source. Native-WebGPU acceptance remains separate from entrypoint availability.
This skill contributes to the following cross-skill owner graphs.
Source hashes, claim verdicts, promoted same-lab media, fixed routes, exact tier contracts, and current limitations.
Lensing is a numerical integration problem, not a screen-space trick. Around a Schwarzschild mass, light bends with an effective potential; the skill integrates the ray ODE in the equatorial plane with a controlled step:
$$\frac{d^2 u}{d\phi^2} + u = \frac{3GM}{c^2}u^2, \qquad u = \frac{1}{r}$$The photon sphere at $r = 3GM/c^2$ and the shadow radius $b_{crit} = 3\sqrt3\,GM/c^2$ anchor the visual scale. The accretion disk adds Doppler beaming and gravitational redshift — the approaching side brightens as
$$I_{obs} = \frac{I_{emit}}{(1+z)^4}, \qquad 1+z = \frac{1}{\sqrt{1 - r_s/r}}\cdot\gamma\,(1 - \beta\cos\theta)$$Integration state (step count, termination reason, escape/capture classification) is a first-class diagnostic output — bounded step budgets and analytic far-field falloff keep the march deterministic and framerate-safe.
Only schema-v2 labs with accepted runtime and evidence contracts appear here. Other source directories remain visible through the demo registry without being promoted to runnable proof.
Every image identifies what it proves. Page screenshots demonstrate the published presentation only; generated inputs demonstrate asset channels only; rendering acceptance still requires same-lab readback and a schema-v2 bundle.
0 published imagesThe complete SKILL.md as loaded by agents, rendered verbatim.
Treat every result as one of three claims: an artistic deformation, an Ellis null-geodesic solution, or a Schwarzschild null-geodesic solution. Numerical integration alone does not turn an artistic field into a metric solution.
| Requested observable | Select | Conditional reference | Completion criterion |
|---|---|---|---|
| Stylized bending, bounded glow, or a decorative disk | Artistic bounded ray | Read artistic-rays-and-disks.md. | The implementation and its documentation say artistic, and fixed-view refinement bounds the visible change. |
| Traversal or turning through an ultrastatic spherical throat | Ellis wormhole | Read the Ellis section of metric-rays.md. | The throat scale, exterior mapping, invariant, and B < 1, B = 1, B > 1 termination classes are explicit. |
| Nonrotating black-hole lensing or a physical thin-disk image | Schwarzschild | Read the Schwarzschild and physical-transfer sections of metric-rays.md. | The mass scale, horizon, photon sphere, critical impact, invariant, continuous events, and observer/emitter frames are explicit. |
| Rotating black hole | Unsupported here | Integrate an independently validated Kerr solver as an external lens-map producer. | The solver supplies its metric/sign conventions, constants of motion, tetrads, event semantics, and independent convergence evidence; otherwise return an unsupported-model result. |
Complete when: exactly one claim owns the ray path, and every visual claim is no stronger than that branch's evidence.
Define before authoring the march:
For metric rays, nondimensionalize with the Ellis throat radius a or the
Schwarzschild mass length M = G M_SI / c^2, while retaining the conversion
back to metres. Render delta never becomes a ray step. Preserve either spherical
metric through a similarity transform: translation, rotation, and uniform
scale. A nonuniform transform requires an explicitly derived transformed
metric and frame plus renewed invariant, event, and convergence validation;
otherwise reject it at setup.
Nonstationary metrics require an external solver that integrates or recovers coordinate time and samples or interpolates metric and emitter state, with validity and error, at every mapped integration evaluation. A frozen metric is a quasi-static approximation only when its declared evolution-error gate passes; otherwise report the model unsupported.
Complete when: every state component and event surface has a declared basis, owner, and finite validity domain, and world-to-solver-to-render round trips preserve the chosen scale and exterior. Each spherical metric uses a similarity transform or supplies validated transformed-metric evidence, and every nonstationary claim uses mapped coordinate-time sampling, is explicitly labeled quasi-static with a passing evolution-error gate, or is unsupported.
Use WebGPURenderer with TSL node functions. Initialize the renderer and
confirm the WebGPU backend before selecting compute, storage, or MRT resources.
The canonical march is:
escaped, horizon, core, opaque, invalid,
unresolved-critical, minimum-step, step-cap, or attempt-cap.The attempt cap bounds divergent work independently of the accepted-step cap.
step-cap bounds committed accepted steps; attempt-cap bounds accepted plus
rejected attempts. A curvature or distance heuristic may propose a step;
refinement against a tighter solution decides whether it is accurate.
Complete when: a trace proves one committed advance per accepted step, rejected attempts leave physical and event state unchanged, every ray receives an explicit termination ID, and event residuals meet their declared bounds.
Sample an exterior environment only for escaped rays. Reconstruct its lookup
direction from the integrated outgoing tangent in the declared orthonormal
frame; orbital position angle alone is not a direction. Bound or integrate any
far-field tail truncated by the proxy.
Keep transfer aligned with the claim:
Accumulate into linear HDR. One pipeline stage owns tone mapping and output conversion; diagnostics that replace the output mark the pipeline graph dirty.
Complete when: misses and non-escaped terminations cannot sample an exterior, the escaped tangent is finite and normalized, disk crossings retain their order, and transfer units reduce to radiance.
Use a direct bounded march for changing lenses, sparse probes, or artistic
fields whose per-pixel work meets the target. Use a critical-split transfer
map for a static spherical Ellis or Schwarzschild lens when coherent reuse
beats direct integration. Use a local high-accuracy map near separatrices when
GPU float32 direct rays miss the angular gate.
When a lens map, compute cache, or temporal reconstruction is selected, read lens-cache-and-history.md before allocating it. Keep the opaque scene and required depth at their required resolution; scale only the effect pass whose error was measured.
Complete when: each cache or history resource has a reuse reason, a stable identity, an invalidation rule, a completion/lifetime rule, and measured benefit over the direct path.
Use a deterministic, seeded environment with high-frequency directional features so angular, critical-curve, and history errors remain visible. It is a validation input generated by the project, not a bundled visual preset.
For every branch:
h, h/2, and h/4 or an equivalent tolerance sequence at fixed
rays and cameras;Artistic rays pass when refinement preserves fixed-view silhouette,
termination class, ordered disk events, and radiance within declared bounds.
Ellis and Schwarzschild rays additionally require an independent CPU float64
reference, invariant drift, critical-regime classification, exterior/escape
agreement, and convergence of the final tetrad direction. A capped,
minimum-step, invalid, or unresolved-critical ray is diagnostic output rather
than physical evidence.
Complete when: every requested observable has a passing branch-specific gate, every failure class is visible in diagnostics, and the final claim lists the numerical and domain limits that remain.
Preserved concept proxies and generated-asset previews. They are excluded from primary completion counts and link to the canonical lab through the schema-v2 registry.