|
4 | 4 |
|
5 | 5 | # polycss |
6 | 6 |
|
7 | | -A CSS polygon mesh engine. A 3D renderer for the DOM. Renders OBJ, glTF, GLB and VOX as real HTML elements transformed with CSS `matrix3d(...)`. Supports colors, textures, lighting, shadows, controls, shapes and animation. Works with React, Vue, custom elements, or plain JavaScript. |
| 7 | +A CSS polygon mesh engine. A 3D renderer for the DOM. Renders OBJ, glTF, GLB and VOX as real HTML elements transformed with CSS `matrix3d(...)`. Supports colors, textures, lighting, shadows, controls, shapes and animations. Works with React, Vue, custom elements, or plain JavaScript. |
8 | 8 |
|
9 | 9 | Visit [polycss.com](https://polycss.com) for docs and model examples. |
10 | 10 |
|
@@ -55,23 +55,6 @@ export default function App() { |
55 | 55 | } |
56 | 56 | ``` |
57 | 57 |
|
58 | | -The Vue package mirrors the same names and props with Vue casing: |
59 | | - |
60 | | -```vue |
61 | | -<template> |
62 | | - <PolyCamera :rot-x="65" :rot-y="45"> |
63 | | - <PolyScene texture-lighting="dynamic"> |
64 | | - <PolyOrbitControls drag wheel /> |
65 | | - <PolyMesh src="/gallery/obj/cottage.obj" mtl="/gallery/obj/cottage.mtl" /> |
66 | | - </PolyScene> |
67 | | - </PolyCamera> |
68 | | -</template> |
69 | | -
|
70 | | -<script setup lang="ts"> |
71 | | -import { PolyCamera, PolyScene, PolyOrbitControls, PolyMesh } from "@layoutit/polycss-vue"; |
72 | | -</script> |
73 | | -``` |
74 | | - |
75 | 58 | ## API Reference |
76 | 59 |
|
77 | 60 | ### PolyCamera |
@@ -179,8 +162,6 @@ polycss renders in the DOM, so performance is mostly determined by how many poly |
179 | 162 | - Voxel-shaped meshes mount only camera-facing leaves when the mesh is eligible. |
180 | 163 | - `meshResolution: "lossy"` can merge compatible polygons to reduce DOM node count. |
181 | 164 |
|
182 | | -For diagnostics, all renderer packages export `collectPolyRenderStats(root)`, which returns mounted polygon leaf counts, shadow counts, surface categories, and bucket counts for an already-rendered scene. |
183 | | - |
184 | 165 | ## Packages |
185 | 166 |
|
186 | 167 | | Package | Description | |
|
0 commit comments