@kirknock/node-openxr-webgl
v0.3.1
Published
The WebGL2 renderer: a first-party WebGL2 shim over the OpenXR session's own EGL/GLES 3 context.
Maintainers
Readme
@kirknock/node-openxr-webgl
The WebGL2 renderer: startNodeXR() (platform.ts), an OpenXR session on
the EGL/GLES 3 context (gles-session.ts, gles-ffi.ts, swapchains.ts)
and the first-party WebGL2 shim over that context: webgl2-shim.ts
assembles it from gl-objects.ts, tex-upload.ts, default-framebuffer.ts,
gl-programs.ts and gl-caps.ts; webgl2-engine.ts sets it up for Babylon.
Tools: pattern, probe-input, probe-env.
Linux only: needs libEGL.so.1 and libGLESv2.so.2 (Mesa is fine) and,
for XR sessions, an OpenXR runtime.
Install
npm install @kirknock/node-openxr-webgl @kirknock/node-openxr-core @babylonjs/[email protected] [email protected]Modules are imported by path, e.g.
@kirknock/node-openxr-webgl/platform.js.
Development
npm ci
npm run build # dist/
npm run lint && npm run typecheck
npm run test:gl # EGL/GLES 3 context (llvmpipe ok): WebGL2 shim + Babylon, 2D canvas
npm run test:xr # live OpenXR runtime (XR_RUNTIME_JSON): WebXR conformance
npm run push # build + yalc push to local consumersnpm run gen:gl regenerates src/generated/gl-constants.gen.ts from the
system GLES headers. Tests run on the nodexr-test runner from
@kirknock/node-openxr-core.
Releasing
Bump version in package.json, commit, then push a matching tag:
npm version patch # or minor / major / prerelease --preid beta
git push --follow-tagsThe Release workflow checks the tag, lints, runs the gl tests on Mesa
llvmpipe, publishes to npm via trusted publishing (with provenance) and
creates a GitHub release with the tarball attached.
License
MIT
