shader_analyze_complexity
Estimate material shader complexity from graph structure and risk flags to spot performance issues early, with optional optimization suggestions.
Instructions
Estimate Material shader complexity from graph structure and risk flags.
This is a fast technical-art audit, not a compiled instruction count. Pair it with renderer_capture_viewmode or shader_visualize_overdraw for scene-level visual validation.
Args: material_path: Material or Material Instance asset path to inspect include_recommendations: Include optimization suggestions
KB: see knowledge_base/08_MATERIALS_AND_RENDERING.md#overview Example: shader_analyze_complexity(material_path="/Game/MCP_Test/M_Example")
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": {
"material_path": "<material_path>"
},
"name": "shader_analyze_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material_path | Yes | ||
| include_recommendations | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |