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
export function phaseForActor(id,duration){if(typeof id!=='string'||!id)throw Error('Actor ID required');if(!Number.isFinite(duration)||duration<=0)throw Error('Positive duration required');let hash=2166136261;for(const c of id)hash=Math.imul(hash^c.charCodeAt(0),16777619);return (hash>>>0)%16*duration/16;}
export function partitionActors(actors){const groups={greek:[],trojan:[]};for(const actor of actors){if(!groups[actor.faction])throw Error(`Unsupported faction ${actor.faction}`);groups[actor.faction].push(actor);}return groups;}