Skip to content

Add Three.js parity API#75

Merged
apresmoi merged 4 commits into
mainfrom
feat/three-parity-surface
Jul 6, 2026
Merged

Add Three.js parity API#75
apresmoi merged 4 commits into
mainfrom
feat/three-parity-surface

Conversation

@apresmoi

@apresmoi apresmoi commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

What changed

Adds an explicit Three.js-compatible authoring surface for PolyCSS across core, vanilla, React, and Vue. The new surface provides Three-style object/camera/light wrappers, Y-up authored geometry conversion, perspective and orthographic camera adapters, and framework components for rendering Three-authored meshes through PolyCSS.

This also adds a parity dashboard and documentation for the new API, including the lighting mode behavior needed to match Three-authored scenes closely.

Why

Three.js-style scene code is the most common parameter surface for examples and generated code. This PR gives PolyCSS a direct, documented path for that surface instead of requiring callers to translate camera, object, and light conventions manually.

Validation

  • pnpm test
  • pnpm build

@apresmoi apresmoi marked this pull request as ready for review July 6, 2026 23:27
@apresmoi apresmoi merged commit 370bfce into main Jul 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant