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.

291 B
Raw Blame
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);
}