Get GLSL Pattern
get_glsl_patternRetrieve GLSL shader patterns and GPU code snippets with full code ready to paste into TouchDesigner GLSL TOP.
Instructions
Retrieve specific GLSL shader patterns or GPU technique code snippets with full code ready to paste into a TouchDesigner GLSL TOP. Also provides common GLSL utility libraries. Use 'list' to see all available patterns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "get_glsl_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | Pattern name to retrieve. Use 'list' to see all available patterns. Examples: 'raymarching', 'reaction_diffusion', 'fbm', 'voronoi', 'feedback_zoom', 'game_of_life', 'boids', 'particle_compute', 'sdf_primitives', 'color_utils', 'math_utils' | |
| include_utilities | No | Include GLSL utility functions (SDF primitives, color utils, math utils) alongside the pattern code (default: false) |