@nanogram/ng-game-three
v0.1.0
Published
three.js render adapter — everything in the engine that touches three.
Readme
ng-game-three
three.js render adapter — everything in the engine that touches three.
- Use when: the game renders a 3D scene (incl. the
flat2d/isometriclooks, which are orthographic projections of a 3D scene). - Import:
@nanogram/ng-game-three(dev dep / built ESM), or merged ontowindow.NGEnginein a scaffold. Dep:@nanogram/ng-game-core; peer:three(CDN via import map). - Interface doc: docs/render-three.md
- Barrel:
src/index.ts(also./presets/*)
What's here
Camera(projection wrapper over coreCameraRig),ThreeRenderDriver.presets— genre camera presets (JSON insrc/presets/).- Model library —
loadModel/loadModels/fitTo; GLTF decode, skinned cloning, engine-ticked mixers.
Using it
Disables three's competing loop/clock: render from rt.onFrame → driver.render(dt), resize
from Surface, never tick mixers yourself. See scaffold/scaffold.md.
