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 { uniform, renderGroup } from 'three/tsl';
import type { SceneClock } from './core';
export function createTimeNode(clock: SceneClock, kind: 'time' | 'ambient' = 'time', wrapSeconds = 1e9) {
return uniform(0).setGroup(renderGroup).onRenderUpdate(() => clock[kind] % wrapSeconds);
}