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.

694 B
Raw Blame
import { catalogLabel } from "../catalogPresentation.js";
import type { ReadyShader } from "./shaders";
import { READY_SHADERS as INTERNAL_READY_SHADERS } from "./shaders";

export const READY_SHADERS: readonly ReadyShader[] = INTERNAL_READY_SHADERS.map((shader) => ({
  ...shader,
  label: catalogLabel(shader),
}));

export const VISIBLE_READY_SHADERS = READY_SHADERS.filter((shader) => !shader.variantOf);

export const READY_SHADER_COLLECTION_COUNT = VISIBLE_READY_SHADERS.reduce(
  (total, shader) => total + (shader.variants?.length || 1),
  0,
);

export function getReadyShader(id: string): ReadyShader {
  return READY_SHADERS.find((shader) => shader.id === id) ?? READY_SHADERS[0];
}