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.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
import { defineDevParams, readDevParams } from '@kiln-scenes/scene-kit';
export interface FarmDevParams {
woodlandTangents?: boolean; staticBaseline?: boolean; instanceUniforms?: boolean; warmConcurrency?: number;
heroMerge?: boolean; shadowCache?: boolean; standIns?: boolean; casterTexels?: number; liveMapSize?: number;
}
/**
* Test and dev builds only (the literal folds away in public builds): A/B switches read from the page URL. M2-M4: woodland
* tangents, the unbatched static baseline, three's per-mesh instance uniforms and the warm pass's concurrency. S4/S5: the
* hero anchor merge, the cached sun shadow, hero shadow stand-ins, the small-caster threshold in texels (0 = off) and the
* live map's size (unset = the tier's map size).
*/
export function readFarmDevParams(): FarmDevParams {
return import.meta.env.KILN_TEST || import.meta.env.KILN_DEV ? readDevParams(defineDevParams({ woodlandTangents: { kind: 'boolean' }, staticBaseline: { kind: 'boolean' }, instanceUniforms: { kind: 'boolean' }, warmConcurrency: { kind: 'number' },
heroMerge: { kind: 'boolean' }, shadowCache: { kind: 'boolean' }, standIns: { kind: 'boolean' }, casterTexels: { kind: 'number' }, liveMapSize: { kind: 'number' } })) : {};
}