Repository navigation
Releases
fork release 8: r187 declarations
Fork release 8 of @takram/three-atmosphere and @takram/three-geospatial. It is release 7 with declarations that type-check against three.js r187, plus the release marker. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves. These are the archives three-clouds-webgpu v0.1.0-alpha.7 vendors and qualifies (its public-candidate-record.json lists both SHA-256s below).
Base: fork/release-7 @ ed822a9d (tag fork-release-7).
Commit on top of release 7 (git log fork/release-7..fork/r187-types):
cecb98cafix: emit r187 compatible fork declarations.
Why. r187 types uniform nodes with an explicit shader type (UniformNode<'vec3', Vector3>), and its light-node constructor contract changed the lifecycle signatures. Release 7's declarations fail to type-check against @types/three 0.187.0. Release 8 normalises the legacy UniformNode value generics, keeps the uint cascade indices, and declares AtmosphereLightNode.updateBefore()/update() as returning undefined and setup() as returning AnalyticLightNode['setup']'s type. Both markers move to release 8:
@takram/three-atmosphere/webgpuexportsforkBuild = { release: 8, r186Kernels: true }.@takram/three-geospatial/webgpuexportsforkBuild = { release: 8, raySpheresIntersectionsLanes: 4, r186Kernels: true }.
Nothing else changes at run time. The built JavaScript differs from release 7 only in the marker's release number.
| Package | Version | SHA-256 |
|---|---|---|
| @takram/three-atmosphere | 0.19.1+fork.8 | 829ec23b8754700f93e9764b8473924ac4995c634dccd6e96401f5b944eb34e1 |
| @takram/three-geospatial | 0.9.1+fork.8 | 10127715aeb9ac35e7d7e8bf443817d08e9bae845851810d5471628c3b91be25 |
Atmosphere's build/webgpu.js SHA-256 is 90e7f7a076c038d2ea498f880f7adcc064c59e7ab0c1418b147e8d6d0c5877d9; release 7's was 4c0ef92f….
Evidence:
- Same bytes as the clouds release: both archives are byte-identical to
vendor/injohnfewell/three-clouds-webgpuat the v0.1.0-alpha.7 tag commit0fefeeb1, and their SHA-256s match that release'spublic-candidate-record.json. - Source: at
cecb98ca,packages/atmosphere/src/webgpu/AtmosphereLightNode.ts, bothforkBuild.tsfiles and both package versions match the archives. - Tarball diff against release 7: only declarations (
types/**),AtmosphereLightNode.ts's signatures, the marker, and the version fields.@takram/three-geospatial'sbuild/index.js, includingisFloatLinearSupported()(the LUT precision choice), is unchanged. - Commit message (
cecb98ca): reports both builds, the declaration transformer tests, the tools typecheck, ESLint and the consuming library typechecks. - Clouds release qualification: consumer recipes and native WebGPU scenarios pass on stock three 0.187.0 with these archives.
- Consumer (Slop Toronto, stock three 0.187.0, Apple M4 / Metal): a fresh
npm ciresolves one copy of each package. The city reaches ready on WebGPU and on the WebGL2 backend, desktop and phone, and its renders match release 7 on the previous three.js.
Releases 1 to 7 stay published.
fork release 7: atmosphere forkBuild marker
Fork release 7 of @takram/three-atmosphere and @takram/three-geospatial. It is release 6 plus a forkBuild marker on the atmosphere package. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves.
Base: fork/release-6 @ 37afce19 (release 5 plus the r186 scattering-LUT kernel fix c4f717ac for mrdoob/three.js#34251).
Commit on top of release 6 (git log fork/release-6..fork/release-7):
ed822a9dfork release 7: atmosphere forkBuild marker and version metadata.
Why. The r186 kernel fix is in the atmosphere package, but only the geospatial package carried a marker. A consumer that installs geospatial from release 6 and atmosphere from release 5 passes a geospatial-only check and still renders the r186 dark sky. Each package now has its own marker, and both carry the same release number:
@takram/three-atmosphere/webgpuexportsforkBuild = { release: 7, r186Kernels: true }.@takram/three-geospatial/webgpuexportsforkBuild = { release: 7, raySpheresIntersectionsLanes: 4, r186Kernels: true }.
Nothing else changes. On stock three 0.185.1 and 0.186.1, the four LUT kernels and ten render graphs compile to WGSL byte-identical to release 6's.
| Package | Version | SHA-256 |
|---|---|---|
| @takram/three-atmosphere | 0.19.1+fork.7 | 3e77db75b7410589b076db6f74caeac5f3a2f787cef5cb7b363285c5ee85f9e0 |
| @takram/three-geospatial | 0.9.1+fork.7 | 319ea47db67a9372e6dce58317cc702b6fd105e051964ed4c8e474bf072d9e44 |
Atmosphere's build/webgpu.js SHA-256 is 4c0ef92f2ef3a288196e088a6c0d49e9f0b841222632624ff1ef90ea864b124f; release 6's was fb3ac44e….
Evidence (CPU only):
- Fork gates at
ed822a9d: core and atmosphere lint, typecheck and test all exit 0 (core 3 tests, atmosphere 5). - Tarball diff against release 6: only the marker, the version fields and the bundler's renamed identifiers.
- WGSL: on 0.185.1 and on 0.186.1, all 14 shaders are byte-identical to release 6. The scattering kernel is
876c66c9…on 0.185.1 and4fd73d77…on 0.186.1, with 0 orphan radius reads. - Consumers (node 24.16.0, pnpm 11.8.0): on stock three 0.186.1 and 0.185.1, install,
pnpm peers check, vite build, both webgpu imports (30 / 70 exports), both markers (release 7 on both) and the built bundle all exit 0. - Control: atmosphere release 6 with geospatial release 7 reports no atmosphere marker, and the marker check exits 1.
Releases 1 to 6 stay published.
fork release 6: r186 scattering-LUT kernel fix
Fork release 6 of @takram/three-atmosphere and @takram/three-geospatial. It is release 5 plus a fix that lets the atmosphere's scattering-LUT kernel compile correctly on stock three r186. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves.
Base: fork/release-5 @ fc5605ed (release 3 plus the four-lane mask fd6804ba, lookupGroundLift 5ebaffb3 and the marker 775c670d).
Commits on top of release 5 (git log fork/release-5..fork/release-6):
c4f717acBuild the scattering texel radius once per scope (packages/atmosphere/src/webgpu/common.ts).37afce19fork release 6: version metadata and forkBuild marker.forkBuildis now{ release: 6, raySpheresIntersectionsLanes: 4, r186Kernels: true }.
What three r186 broke. three r186 changed ContextNode.setup() to return its child's build (mrdoob/three.js#34251, "ContextNode: Avoid redundant calls", f6080cc6). After that change, a plain TSL node that is read in an If, in its Else and again after the branch is declared as a var in one branch only, so the later read is an orphan. getParamsFromScatteringTextureCoord read one radius node in all three places. On stock 0.186.1, the scattering kernel's ScatteringParams(...) reads the radius var declared only in the Else, so every texel with coord.z < 0.5 gets radius 0. The fix builds the radius separately in each scope, which matches what r185 emits.
| Package | Version | SHA-256 |
|---|---|---|
| @takram/three-atmosphere | 0.19.1+fork.6 | 2847a6e02681846370bc3aef37fb6b9e6a74095dccb622539813a9ef7d63d351 |
| @takram/three-geospatial | 0.9.1+fork.6 | 7a5f33c1cda0073f836678c05eb5b8d63774848605efdce440b324eb55bae60c |
Atmosphere's build/webgpu.js SHA-256 is fb3ac44e565f896c0af5f7467e22bff89dbf1389b892e4ee8c6e17a68ccbe1f3; release 5's was e68b439d….
Evidence (CPU only). The four LUT kernels and ten render graphs were compiled to WGSL with a stub renderer:
- Stock three 0.185.1: all 14 shaders are byte-identical between release 5 and release 6. The scattering kernel is
876c66c9532e2a7a70351bf0d5d0788cefb0d5df4467fa63f6b6b15fb25d0fb1in both. - Stock three 0.186.1:
- The scan from the clouds port (PR #345) finds 1 orphan radius read in release 5 (
47192c81…, exit 1) and 0 in release 6 (4fd73d77…, exit 0, 2 sqrt vars checked). - Release 6's four kernels on 0.186.1 match 0.185.1 apart from blank lines and the version banner.
- The ten render graphs (sky, aerial perspective, the intersection functions, the TAA resolve, the lens-glare compute) did not change between releases, and r186 adds no orphan read to them.
- The scan from the clouds port (PR #345) finds 1 orphan radius read in release 5 (
- Fork gates at
37afce19: core and atmosphere lint, typecheck and test all exit 0. - Consumers (stock three 0.186.1 and 0.185.1, node 24.16.0, pnpm 11.8.0): install,
pnpm peers check, vite build, both webgpu imports (29 / 70 exports) and the built bundle all exit 0.
Releases 1 to 5 stay published.
fork release 5: forkBuild marker
Fork release 5 of @takram/three-atmosphere and @takram/three-geospatial. It is release 4 plus a feature marker. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves.
Base: fork/small-fixes @ 775c670d, which is fork/release-3 (4c14bee6) plus the two release-4 fixes and the marker. Release 3 is the 0.19.1 / 0.9.1 npm release commit b1a4d628 plus the r185 struct fix (22d75078, e7f0418e) and the aerial shadow hook (cd8d304c).
Patch commits on top of release 3:
fd6804baMask every lane in raySpheresIntersections (packages/core/src/webgpu/math.ts), as in release 4.5ebaffb3AddAtmosphereContext.lookupGroundLift, as in release 4.775c670dExport a forkBuild marker from the webgpu entry (packages/core/src/webgpu/forkBuild.ts).@takram/three-geospatial/webgpuexportsforkBuild = { release: 5, raySpheresIntersectionsLanes: 4 }. A consumer that depends on the four-lane mask can check it at load time and fail loudly on npm 0.9.1 or fork releases 1 to 4, which mask only.xand.y.fc5605edfork release 5: version metadata.
| Package | Version | SHA-256 |
|---|---|---|
| @takram/three-atmosphere | 0.19.1+fork.5 | eeab2cf5290aa5f03eb81d83ba66e97eacb5399fe1edca31dc47feae982bed79 |
| @takram/three-geospatial | 0.9.1+fork.5 | b9594039911a58550045f72097eef5b657b4b671e4e328c63601ca4e9a2f6dfc |
Atmosphere's build/webgpu.js is byte-identical to release 4 (e68b439d…); only its package.json version differs. Geospatial's source differs from release 4 only by the marker file and its export.
Fork gates at 775c670d (the release adds only version metadata): nx run core:lint, core:typecheck, core:test, atmosphere:lint, atmosphere:typecheck and atmosphere:test all exit 0.
Consumer evidence. Stock three 0.185.1, node 24.16.0, pnpm 11.8.0, fresh directories:
| Consumer | install | pnpm peers check |
vite build | node import (atm / geo) | FnLayout(struct) | forkBuild |
built bundle in node |
|---|---|---|---|---|---|---|---|
| local tarballs | 0 | 0 | 0 | ok 29 / ok 70 | ok | {"release":5,"raySpheresIntersectionsLanes":4} |
0 |
| npm 0.19.1 / 0.9.1 (negative control) | 0 | 0 | 0 | FAIL TypeError: Cannot read properties of undefined (reading 'name') / ok 69 |
FAIL | null |
1 |
Releases 2, 3 and 4 stay published.
fork release 4: four-lane raySpheresIntersections, lookupGroundLift option
Fork release 4 of @takram/three-atmosphere and @takram/three-geospatial. It is release 3 plus two fixes. It is not an upstream release, and it keeps the upstream package names so that one copy of each package resolves.
Base: fork/release-3 @ 4c14bee6. That is the 0.19.1 / 0.9.1 npm release commit b1a4d628 plus the r185 struct fix (22d75078, e7f0418e) and the aerial shadow hook (cd8d304c).
Patch commits on top of release 3:
fd6804baMask every lane in raySpheresIntersections (packages/core/src/webgpu/math.ts). The mask was alwaysvec2, sovec3andvec4radii got valid intersections only in.xand.y. The mask now has one lane per radius. Scalar andvec2radii keep thevec2mask, so their output is unchanged.5ebaffb3AddAtmosphereContext.lookupGroundLift(packages/atmosphere/src/webgpu/AtmosphereContext.ts, runtime.ts, WEBGPU.md). The LUT lookup path (raymarchScattering = false) lifts the camera and the point by this fraction of the atmosphere thickness. The default is0.01, the old constant.0keeps only the clamp to the bottom radius.2d518a5dfork release 4: version metadata.
| Package | Version | SHA-256 |
|---|---|---|
| @takram/three-atmosphere | 0.19.1+fork.4 | a1701011e91c86b3a61533b1f5ae2a461b81ed4182a912484c34a211465e825c |
| @takram/three-geospatial | 0.9.1+fork.4 | 42d5fbf68d86f739952a73f673b1f74750e96bcc4251b64d733cc8beb2fbdda0 |
Both packages change in this release: geospatial carries the mask fix.
Fork gates at 5ebaffb3 (the release adds only version metadata): nx run core:test, atmosphere:test, core:lint, atmosphere:lint, core:typecheck and atmosphere:typecheck all exit 0.
Consumer evidence. Stock three 0.185.1, node 24.16.0, pnpm 11.8.0, fresh directories:
| Consumer | install | pnpm peers check |
vite build | node import (atm / geo) | FnLayout(struct) | built bundle in node |
|---|---|---|---|---|---|---|
| local tarballs | 0, no peer warning | 0 | 0 | ok 29 / ok 69 | ok | 0, prints 29 69 |
| npm 0.19.1 / 0.9.1 (negative control) | 0 | 0 | 0 | FAIL TypeError: Cannot read properties of undefined (reading 'name') / ok 69 |
FAIL | 1 |
Shader evidence (CPU, the WGSL compiled from AerialPerspectiveNode). With every option at its default, release 4 emits byte-identical fragments to release 3 on the lookup path, lit and unlit, and on the raymarch path. The port's own graphs only change where it calls raySpheresIntersections with vec4 radii.
Releases 2 and 3 stay published.
fork release 3: AerialPerspectiveNode shadowNode and lightingMaskNode
Release 2 plus two optional inputs on the WebGPU AerialPerspectiveNode: shadowNode and lightingMaskNode. These are patched builds of @takram/three-atmosphere 0.19.1 and @takram/three-geospatial 0.9.1. This is an unofficial fork release. Upstream is takram-design-engineering/three-geospatial.
Release 3 is built on fork-release-2, which stays published.
The new inputs
// Transmittance (0-1) of an occluder such as clouds toward the sun, applied
// only to the direct solar illuminance when lighting is enabled.
shadowNode: Node<'float'> | null = null
// Per-pixel amount (0-1) of lighting applied when lighting is enabled. Where
// it is 0 the input color is kept as self-lit, still with transmittance and
// inscattering applied.
lightingMaskNode: Node<'float'> | null = nullshadowNodecomputesilluminance = direct * shadow + indirect. Moonlight is not shadowed.lightingMaskNodecomputesmix(color * transmittance, postLit, clamp(mask, 0, 1))before inscattering is added. It is applied only whenlightingis true. When lighting is off, the self-lit and post-lit values are the same, so the mask has nothing to do.- With both inputs null, the node builds the same graph as 0.19.1. The emitted WGSL is byte-identical; see below.
Pass a mask node that is free of derivatives, for example a texture read at an explicit level. The node evaluates the mask inside its surface branch, which is non-uniform control flow.
Source
- Base:
fork/release-2=b1a4d6282db3ad5079c807f4039ae1db96c06765(the upstream commit that published 0.19.1 / 0.9.1) +22d75078ande7f0418e(the r185 struct fix from PR takram-design-engineering#118) +dc8d1915(release 2 version metadata) cd8d304c773de47d22d3d9ca6700827cc8f3d52eAdd shadowNode and lightingMaskNode inputs to AerialPerspectiveNode (one file, +18/-1)4c14bee692ce3df9ef92dddaa13fb3331acb9a26fork release 3: version metadata
Assets
| File | Version | Size | SHA-256 |
|---|---|---|---|
takram-three-geospatial-0.9.1+fork.3.tgz |
0.9.1+fork.3 | 200853 B | 8c1b548b23386719974b2868d9332e6ada8e39eabed631c946759b7f8d2a153e |
takram-three-atmosphere-0.19.1+fork.3.tgz |
0.19.1+fork.3 | 24446776 B | afc9def33a66d13928b8cf77e8bc34933821b31fd8eb3af736b61d8f651005fc |
Compared with release 2, the geospatial tarball differs only in its version. The atmosphere tarball differs only in AerialPerspectiveNode.ts, AerialPerspectiveNode.d.ts, build/webgpu.{js,cjs} with their source maps, and the version.
Built with node 22.23.3 and pnpm 9.15.9 from the base commit's lockfile. Prettier, eslint, typecheck, both builds, and the tests (atmosphere 3/3, core 5/5) all exit 0.
Evidence (CPU only)
- Default graph unchanged. The node was compiled to WGSL without a GPU, with every new input null, on release 2 and on release 3. In all four configurations (lit, unlit, lit + moon, unlit + moon) the vertex and fragment WGSL are byte-identical. Example (lit), fragment
sha256 a7d9a5b96758e264c2da27554717f2686561d55fc681ae40a314946d4c1aaac6and vertex4385253346fecd610a93a974fd4d5ac1bf05bd0913220c89a357e9a81a6ed7dbon both releases. - Same output as the subclass it replaces. The port being forked for, three-clouds-webgpu, currently uses a subclass that overrides
setup(). Both nodes were rendered on WebGPU via SwiftShader (CPU) with identical seeded inputs; readbacks are pinned to one STBN phase (frameId % 64), where the node itself is bit-reproducible:- Against the subclass as it was before an instrumentation refactor (the summed form
direct * shadow + indirect), the output is bit-identical in every configuration that version supports. - Against the current subclass, the unlit configurations are bit-identical. The lit configurations differ by at most 3.1e-6 relative (1.2e-7 absolute). That residual is float32 rounding from the subclass's re-association
D·T·s + I·T. - Sensitivity control: multiplying the shadow by 0.999 changes values by up to 9.6e-4 relative.
- Against the subclass as it was before an instrumentation refactor (the summed form
- Consumer. Stock three 0.185.1 (no patch), node 24, pnpm 11.8, overrides pointing at these tarballs: install with no warnings,
pnpm peers checkexits 0 (including the^0.19.1/^0.9.1ranges),vite buildexits 0, imports succeed (29 / 69 exports),FnLayoutwith a struct type works, both inputs are present on a new node, and the built bundle runs. Negative control: the npm 0.19.1 / 0.9.1 packages fail at import with the.layout.nameTypeError.
Use
Override both names (pnpm 11, in pnpm-workspace.yaml). Keep geospatial as a local tarball, because pnpm's blockExoticSubdeps (on by default) rejects a URL for a dependency of a dependency:
overrides:
'@takram/three-atmosphere': 'https://github.com/johnfewell/three-geospatial/releases/download/fork-release-3/takram-three-atmosphere-0.19.1%2Bfork.3.tgz'
'@takram/three-geospatial': 'file:./vendor/takram-three-geospatial-0.9.1+fork.3.tgz'Use only one copy of atmosphere per app: instanceof AtmosphereContext breaks if two copies are installed.
fork release 2: three r185 struct shape on 0.19.1 / 0.9.1
Patched builds of @takram/three-geospatial 0.9.1 and @takram/three-atmosphere 0.19.1 that work with three r185, which changed what struct() returns. These are drop-in replacements for the npm 0.19.1 / 0.9.1 releases. This is an unofficial fork release. Upstream is takram-design-engineering/three-geospatial.
This release supersedes fork-release-1, which was built from upstream main.
Source
- Base:
b1a4d6282db3ad5079c807f4039ae1db96c06765("chore(release): publish", 2026-05-06), the upstream commit that published 0.19.1 / 0.9.1 to npm - Patch commits on
fork/release-2(cherry-picked from PR takram-design-engineering#118,fix/three-r185-struct-layout, with no conflicts):22d75078558c2d6d2feb7c5241b5e10497cf9f16Support the struct() return shape of three r185e7f0418e524264fefd8322831a2a551dc103a3d1Detect the r185 struct proxy without type assertions, drop the testsdc8d19150b2fd36f9f4af58b7f1c981afc90852afork release 2: version metadata
- Net change against the base:
packages/atmosphere/src/webgpu/AtmosphereContextBase.tsandpackages/core/src/webgpu/FnLayout.ts(+27/-5), plus the two version fields.
Assets
| File | Version | Size | SHA-256 |
|---|---|---|---|
takram-three-geospatial-0.9.1+fork.2.tgz |
0.9.1+fork.2 | 200853 B | ee46293e221b0ef2f62ebda957802f64dc9b668d8a1e6f6943b66c5ba11568f3 |
takram-three-atmosphere-0.19.1+fork.2.tgz |
0.19.1+fork.2 | 24446117 B | c7dce0992f8b1ddeaa51e1a1db23d271049fcd0db6f6870657eea2e551726b76 |
Built with node 22.23.3 (.nvmrc lts/jod) and pnpm 9.15.9 from the base commit's own lockfile: pnpm install --frozen-lockfile, pnpm exec nx run core:build, pnpm exec nx run atmosphere:build, then npm pack in dist/packages/<name>.
Comparison with the npm tarballs
Each tarball has the same file list as the npm release it replaces (atmosphere 191 files, geospatial 176). Every file is byte-identical to npm's except these:
package.json: the version line, plus a trailing newline- the patched source file
build/webgpu.js,build/webgpu.cjsand their source maps
build/shared.*, build/index.*, all of types/ and all of assets/ match npm's byte for byte.
Versions
The package names are unchanged. A version with build metadata (+fork.2) still satisfies ^0.19.1 / ^0.9.1 and sorts the same as the release it is based on. pnpm 11.8 accepts it, though its install summary prints the version without the metadata. Use only one copy of atmosphere per app: instanceof AtmosphereContext breaks if two copies are installed.
Use
Override both names, never just one. In pnpm 11 the overrides go in pnpm-workspace.yaml. Since pnpm 10.26, blockExoticSubdeps is on by default, so geospatial (a dependency of atmosphere) cannot come from a URL. Keep it as a local tarball (file:) instead, and point atmosphere at its URL:
overrides:
'@takram/three-atmosphere': 'https://github.com/johnfewell/three-geospatial/releases/download/fork-release-2/takram-three-atmosphere-0.19.1%2Bfork.2.tgz'
'@takram/three-geospatial': 'file:./vendor/takram-three-geospatial-0.9.1+fork.2.tgz'With an empty pnpm cache, the lockfile records an sha512 integrity for the URL tarball: sha512-Uegw58xm…ydOpkA==, which matches the packed asset. A lockfile entry without integrity came from a pnpm cache primed by an earlier failed install, so check that the entry carries one. The alternatives are to set blockExoticSubdeps: false and point both names at URLs, or to vendor both tarballs.
Consumer evidence (CPU only, stock three 0.185.1 with no patch, node 24.16.0, pnpm 11.8.0)
- With overrides pointing at these tarballs,
pnpm installexits 0 with no peer warning.pnpm peers checkreports "No peer dependency issues found", including for a probe package that declares peers^0.19.1/^0.9.1.vite buildexits 0.import('@takram/three-atmosphere/webgpu')succeeds in node (29 exports, geospatial 69).FnLayoutwith a struct type works, and the built bundle runs in node and prints29 69. - With option 2 from the release URL (atmosphere by URL, geospatial from the downloaded asset), the same checks pass. The results are in
READY-2.md. - Negative control, the npm 0.19.1 / 0.9.1 packages without overrides:
vite buildstill exits 0, but importing fails withTypeError: Cannot read properties of undefined (reading 'name').FnLayoutwith a struct type throwsUnsupported layout type: [object Function], and the built bundle exits 1. - Peer-check control: a probe package that wants
^0.20.0makespnpm peers checkexit 1.
fork release 1: three r185 struct shape
Superseded by fork-release-2, which is built on the 0.19.1 / 0.9.1 release commit b1a4d628 and is a drop-in replacement for the npm packages. This release is built on upstream main and stays published for reference.
Correction (2026-10-25): an earlier version of these notes said pnpm writes URL tarballs to the lockfile with no integrity hash. That was wrong. It came from a pnpm cache primed by a failed install. With an empty cache, the lockfile records sha512 integrity for URL tarballs.
Patched builds of @takram/three-geospatial and @takram/three-atmosphere that work with three r185, which changed what struct() returns. This is an unofficial fork release. Upstream is takram-design-engineering/three-geospatial.
Source
- Upstream base:
b012ad06d858fc035d88aacfd73f092f93c994e4(upstreammain, 2026-05-27) - Patch commits on
fork/release-1(cherry-picked from PR takram-design-engineering#118,fix/three-r185-struct-layout, which sits on the same base):4a5da2ad11c63a5ad3b70daca2889682eb6429bbSupport the struct() return shape of three r1850b801159c1048fe68aed57d12dbdde23cdee2320Detect the r185 struct proxy without type assertions, drop the testsc40936fe491cb41af0aa43c924e11066ac79ea34fork release 1: version metadata
- Net change against the base:
packages/atmosphere/src/webgpu/AtmosphereContextBase.tsandpackages/core/src/webgpu/FnLayout.ts(+27/-5), plus the two version fields.
The base is upstream main, not the 0.19.1 / 0.9.1 npm release commit (b1a4d628). The base is 127 commits past that release, and the core and atmosphere sources differ by 50 files (+1325/-949). For example, bufferGeometry was removed from core, and stars and RenderTargetNode were added.
Assets
| File | Version | SHA-256 |
|---|---|---|
takram-three-geospatial-0.9.1+fork.1.tgz |
0.9.1+fork.1 | 2891fa0d39113edb987be09547cd904ae2b3e66d4c4e5c0b90b78b6709313696 |
takram-three-atmosphere-0.19.1+fork.1.tgz |
0.19.1+fork.1 | b059c70fc4205d9886a12cca1c92ad41dc697cc1dcb692edea95368b9a1b151a |
Built with node 22.23.3 (.nvmrc lts/jod) and pnpm 9.15.9: pnpm install --frozen-lockfile, pnpm exec nx run core:build, pnpm exec nx run atmosphere:build, then npm pack in dist/packages/<name>.
Versions
The package names are unchanged. A version with build metadata (+fork.1) still satisfies ^0.19.1 / ^0.9.1 and sorts the same as the release it is based on. pnpm 11.8 accepts it, though its install summary prints the version without the metadata. Use only one copy of atmosphere per app: instanceof AtmosphereContext breaks if two copies are installed.
Use
Override both names, never just one. Atmosphere depends on geospatial, so overriding only atmosphere still installs the unpatched npm core. In pnpm 11 the overrides go in pnpm-workspace.yaml.
Since pnpm 10.26, blockExoticSubdeps is on by default. When both names point at URLs, the geospatial dependency inside atmosphere is a URL sub-dependency, and the install fails with ERR_PNPM_EXOTIC_SUBDEP. Three setups were tested and pass on pnpm 11.8.0:
-
Both names point at URLs, and the guard is turned off for the whole project.
blockExoticSubdeps: false overrides: '@takram/three-atmosphere': 'https://github.com/johnfewell/three-geospatial/releases/download/fork-release-1/takram-three-atmosphere-0.19.1%2Bfork.1.tgz' '@takram/three-geospatial': 'https://github.com/johnfewell/three-geospatial/releases/download/fork-release-1/takram-three-geospatial-0.9.1%2Bfork.1.tgz'
-
Atmosphere points at its URL, and geospatial points at a local copy of its 200 KB tarball (
file:). The guard stays on. -
Both names point at local copies of the tarballs (
file:), checked against the SHA-256 values above. The guard stays on, and the lockfile pins sha512 integrity for both.
Consumer evidence (CPU only, stock three 0.185.1 with no patch, node 24.16.0, pnpm 11.8.0)
- With overrides pointing at these tarballs,
pnpm installexits 0 with no peer warning.pnpm peers checkreports "No peer dependency issues found", including for a probe package that declares peers^0.19.1/^0.9.1.vite buildexits 0.import('@takram/three-atmosphere/webgpu')succeeds in node (32 exports, geospatial 73).FnLayoutwith a struct type works, and the built bundle runs in node and prints32 73. - Negative control, the npm 0.19.1 / 0.9.1 packages without overrides:
vite buildstill exits 0, but importing fails withTypeError: Cannot read properties of undefined (reading 'name')atlayer0: Re.layout.name.FnLayoutwith a struct type throwsUnsupported layout type: [object Function], and the built bundle fails with the same TypeError. - Peer-check control: a probe package that wants
^0.20.0makespnpm peers checkexit 1, which shows the check can fail.