Td Mat Family logo

Td Mat Family

Organization
TouchDesigner
td-mat-family

Materials — constantMAT, pbrMAT, pointspriteMAT, glslMAT, lineMAT, placement, blending. Use when assigning or creating materials for rendering.

Overview

PublisherTouchDesigner
RepositoryTDMCPSkills
Skill nametd-mat-family
Stars
42
Forks
1
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by TouchDesigner on GitHub. Read the source before you install it.

Installation

Install the Td Mat Family AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-mat-family
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TouchDesigner/TDMCPSkills.git /tmp/TDMCPSkills
mkdir -p .claude/skills
cp -r /tmp/TDMCPSkills/skills/td-mat-family .claude/skills/td-mat-family
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Td Mat Family in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Td Mat Family on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Td Mat Family is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Materials

Materials control how geometry appears when rendered by a renderTOP.

Material Types

  • constantMAT — flat color, no lighting. Simplest, cheapest. Good for debug, UI, flat graphics
  • phongMAT — classic diffuse+specular lighting. Maps for diffuse, specular, normal, bump, emit
  • pbrMAT — physically based rendering. Metallic/roughness workflow, environment maps. Requires environmentlightCOMP with map TOP (see PBR Setup below)
  • pointspriteMAT — renders points as camera-facing quads with configurable size. Essential for particle rendering
  • glslMAT — custom GLSL vertex/pixel shaders. Full control. Load td-glsl-shaders skill for shader code
  • lineMAT — renders line primitives (proximityPOP/linePOP graphs, edges). Per-line color, pixel or world width
  • wirePOP — wireframe rendering via material wireframe toggle

When to Use What

  • Flat particles/points → pointspriteMAT (set pointsize, optional colormap texture)
  • Lit geometry → pbrMAT (default choice) or phongMAT
  • Unlit solid color → constantMAT
  • Custom shading → glslMAT
  • Debug/wireframe → constantMAT with wireframe=true

pointspriteMAT

Renders each point as a camera-facing square. Without this, points render as single pixels.

  • pointsize — sprite size in pixels (default 1)
  • colormap — optional TOP texture mapped onto each sprite
  • alpha — global opacity multiplier
  • blending — enable for transparency
  • sizingmodel — constant/attenuate or attrib. Attenuate scales with distance

Placement

  • Inside geometryCOMP — reference as ./mat_name. Material lives with its geometry
  • Sibling level — reference by name only (mat_name). Shared across geometryCOMPs
  • Naming: mattype_purpose (e.g. pointsprite_particle, pbr_surface, constant_debug)
  • Always use get_help before setting parameters — par names vary between MAT types

PBR Setup

pbrMAT renders completely black without an environment light:

  1. Create environmentlightCOMP inside the geometryCOMP (or sibling)
  2. Create moviefileinTOP with file = app.samplesFolder + '/Map/CloudyOcean_2Kx1K_8bit.tif'
  3. Set environmentlightCOMP envmap to the moviefileinTOP
  4. POP geometry using pbrMAT also needs normalPOP with tang=alwayscompute — PBR lighting requires tangent vectors

glslMAT Setup

From scratch — creating a glslMAT auto-docks three DATs: <name>_vertex, <name>_pixel, <name>_info.

  1. Delete _pixel docked DAT
  2. Rename _vertex → <name>_shader (stays docked to MAT)
  3. Write combined shader with #ifdef TD_VERTEX_SHADER / #ifdef TD_PIXEL_SHADER guards
  4. Set both vdat and pdat to the renamed DAT
  5. Keep _info docked for compile error visibility
  6. Assign via ./mat_name when inside a geometryCOMP

From pbrMAT/phongMAT — pulse outputshader on the existing material. This creates a glslMAT with all built-in uniforms and shader code pre-populated in separate vertex/pixel DATs. Better starting point when extending PBR-style materials — modify the generated shaders instead of writing from scratch.

Layout follows the GLSL DAT sandwich pattern (see td-node-layout skill). Load td-glsl-shaders skill for shader code, uniforms, and templates.

Pitfalls

  • Points invisible — using constantMAT/pbrMAT for point-only geometry. Use pointspriteMAT
  • Wrong path prefix — ./ means child, no prefix means sibling. Match placement to reference
  • Blending off — transparent materials need blending=true on the MAT
  • pbrMAT renders black — missing environmentlightCOMP with an environment map TOP. Always include one
  • PBR on POPs missing tangents — normalPOP tang must be alwayscompute, otherwise lighting fails
  • pbrMAT metallic defaults to 1 — must explicitly set metallic=0 for non-metallic surfaces, otherwise geometry looks like chrome
  • pbrMAT reads vertex Tex, not point Tex — glslPOP writes point attributes, but pbrMAT samples basecolormap from vertex Tex coords. Use attributeconvertPOP (convertop=pointtovert) to convert. See td-pop-family skill
  • glslMAT on POPs: Cd/N silent failure — referencing Cd or N as vertex attributes silently kills rendering (geometry vanishes, no errors). Use TDPointColor() for vertex color, derive normals via dFdx/dFdy(worldPos) in fragment shader
  • lineMAT per-line color — linecoloratt='Color' reads per-primitive Color (RGBA incl alpha). Without it, lines use flat colorr/g/b
  • lineMAT width vanishes under normalized camera — widthaffectedbyfov=ON scales width with orthowidth; normalizing the cam (orthowidth 1920→1.0) makes lines sub-pixel/invisible. Fixed-resolution output: widthaffectedbyfov=OFF + pixel widths

Frequently asked questions

What does the Td Mat Family AI skill do?

Materials — constantMAT, pbrMAT, pointspriteMAT, glslMAT, lineMAT, placement, blending. Use when assigning or creating materials for rendering.

Why use Td Mat Family on TypingMind?

Because you install it once and use it with any model. Td Mat Family is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Td Mat Family in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/TouchDesigner/TDMCPSkills/tree/main/skills/td-mat-family. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Td Mat Family?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Td Mat Family?

As many as you like. As long as a model supports skills, you can use Td Mat Family with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Td Mat Family AI skill free?

It is published on GitHub by TouchDesigner. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇