Skip to content

armgit / kiln

Public Imported from GitHub
0

Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.

Add cross-genre showcase asset collections

Matt Kissinger224fa67dc305
diff --git a/imposter/animated-bake.ts b/imposter/animated-bake.ts
index bd07291c..3354a7b3 100644
--- a/imposter/animated-bake.ts
+++ b/imposter/animated-bake.ts
@@ -538,7 +538,8 @@ window.__animatedImposterRenderTile = ({ dir, clipRawName, timeSec, tileSize })
});
const half = boundsRadius * 1.05;
- const camera = new THREE.OrthographicCamera(-half, half, half, -half, 0.01, 200);
+ const far = Math.max(200, boundsRadius * 8);
+ const camera = new THREE.OrthographicCamera(-half, half, half, -half, 0.01, far);
const d = new THREE.Vector3(dir[0], dir[1], dir[2]).normalize();
camera.position.copy(boundsCenter).addScaledVector(d, boundsRadius * 4);
camera.up.set(0, 1, 0);
diff --git a/imposter/bake.ts b/imposter/bake.ts
index e5b7259d..ce6f8a7a 100644
--- a/imposter/bake.ts
+++ b/imposter/bake.ts
@@ -590,7 +590,8 @@ window.__imposterRenderTile = ({ dir, layer, bgColor, colorLayer, tileSize }) =>
// Orthographic camera sized to the bounding sphere.
const half = boundsRadius * 1.02;
- const camera = new THREE.OrthographicCamera(-half, half, half, -half, 0.01, 200);
+ const far = Math.max(200, boundsRadius * 8);
+ const camera = new THREE.OrthographicCamera(-half, half, half, -half, 0.01, far);
const d = new THREE.Vector3(dir[0], dir[1], dir[2]).normalize();
camera.position.copy(boundsCenter).addScaledVector(d, boundsRadius * 4);
camera.up.set(0, 1, 0);