The public surface is one class, WebglRenderer, which implements
@fourjs/render's Renderer. Everything else exported here is exported
because a test, a diagnostic, or a future second pipeline in this package
needs it — GL, WebglContext, UnlitProgram, and GeometryCache are the
seams that let the whole backend be unit-tested against a hand-rolled fake
context with no GPU and no browser (see tests/webgl-renderer.test.ts).
Applications select a backend at the edge (§62); nothing in @fourjs/scene,
@fourjs/motion, or @fourjs/physics may name anything in this package.
@fourjs/render-webgl— the WebGL 2 backend (§62 backend 2, §120's MVP tier).The public surface is one class, WebglRenderer, which implements
@fourjs/render'sRenderer. Everything else exported here is exported because a test, a diagnostic, or a future second pipeline in this package needs it —GL,WebglContext,UnlitProgram, andGeometryCacheare the seams that let the whole backend be unit-tested against a hand-rolled fake context with no GPU and no browser (seetests/webgl-renderer.test.ts).Applications select a backend at the edge (§62); nothing in
@fourjs/scene,@fourjs/motion, or@fourjs/physicsmay name anything in this package.