Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

402 B
Raw Blame
export const DEFAULT_SHADOW_CATCHER_OPACITY = 0.75
export const DEFAULT_SHADOW_CATCHER_COLOR = '#000000'

export function shadowCatcherOpacity(opacity = DEFAULT_SHADOW_CATCHER_OPACITY) {
  return Math.min(Math.max(opacity, 0), 1)
}

export function shadowCatcherColor(color = DEFAULT_SHADOW_CATCHER_COLOR) {
  return /^#[0-9a-f]{6}$/i.test(color) ? color.toLowerCase() : DEFAULT_SHADOW_CATCHER_COLOR
}