Skip to content

Repository files navigation

@carbonenginejs/runtime-trinity

GPU-free CarbonEngine Trinity and Eve scene-graph classes for serialization, inspection, simulation, and renderer-neutral runtime behavior.

Use this package when an application needs the portable Trinity object graph without creating a graphics device. It builds on @carbonenginejs/runtime-utils and consumes canonical resource/shader models from @carbonenginejs/runtime-resource. Trinity owns the mutable Tr2Effect/Tr2Material facade, parameters, options, and graph behavior; resource loading and device-free shader reflection belong to runtime-resource, and WebGL or WebGPU realization belongs to an engine.

Install

npm install @carbonenginejs/runtime-trinity

Quick start

EveCamera maintains Carbon-compatible CPU-side view and projection state:

import { EveCamera } from "@carbonenginejs/runtime-trinity/eve";

const camera = new EveCamera();
camera.translationFromParent = 100;
camera.SetOrbit(0, 0);
camera.Update(0, 16 / 9);

const view = camera.GetViewMatrix();
const projection = camera.GetProjection();

No canvas, graphics context, or GPU device is created by this package.

Documentation

License

MIT. See LICENSE and NOTICE.

CarbonEngine and Fenris Creations (CCP Games) are named for interoperability and provenance. CarbonEngineJS is not affiliated with or endorsed by CCP Games.

About

🐔 CarbonEngineJS trinity runtime

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages