docs: document model stats helper
This commit is contained in:
@@ -68,6 +68,7 @@ Access the app at `http://localhost:3000`
|
||||
> **Note:** The current upload contract accepts `model.gltf` and preserves it as GLTF. `.glb` uploads are rejected by validation.
|
||||
>
|
||||
> Local 3D preview supports `model.gltf` folders by resolving dropped companion files such as `model.bin` and textures through local object URLs.
|
||||
> The preview also shows a small model stats helper with estimated draw calls, meshes, triangles, materials, and texture count.
|
||||
|
||||
### Production (Coolify / Docker)
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ export default function ModelViewer({ url, assetUrls, filename, size }: ModelVie
|
||||
</span>
|
||||
</div>
|
||||
{stats && (
|
||||
<div className="absolute bottom-3 left-3 right-3 z-10 grid grid-cols-2 gap-2 rounded-lg border border-white/10 bg-black-900/75 p-2 text-xs text-gray-300 backdrop-blur sm:left-auto sm:right-3 sm:w-64">
|
||||
<div className="absolute top-12 right-3 z-10 flex w-44 flex-col gap-1.5 rounded-lg border border-white/10 bg-black-900/75 p-2 text-xs text-gray-300 backdrop-blur">
|
||||
<span className="flex justify-between gap-3">
|
||||
<span className="text-gray-500">Draw calls</span>
|
||||
<span className="font-mono text-gray-200">{stats.drawCalls}</span>
|
||||
|
||||
Reference in New Issue
Block a user