Skip to content

feat: add material creation, preview, live coding, and editor exit tools#27

Open
steakbbq wants to merge 1 commit intoNatfii:masterfrom
steakbbq:feature/material-and-editor-tools
Open

feat: add material creation, preview, live coding, and editor exit tools#27
steakbbq wants to merge 1 commit intoNatfii:masterfrom
steakbbq:feature/material-and-editor-tools

Conversation

@steakbbq
Copy link
Copy Markdown

@steakbbq steakbbq commented Apr 5, 2026

Summary

New MCP tools for material authoring workflow and editor control:

  • material_create: Create materials with Custom HLSL nodes programmatically - add parameters, wire connections, set shader code all via MCP
  • material_preview: Capture material preview thumbnail as base64 JPEG for visual feedback
  • live_coding: Trigger hot reload compilation (equivalent to Ctrl+Alt+F11)
  • editor_exit: Gracefully close the editor with save dialog for unsaved changes

Enhanced get_material_info in the existing material tool:

  • Shows blend mode, shading model, two-sided status
  • Shows parameter nodes with names, types, and default values
  • Shows Custom HLSL nodes with code length, inputs, and connections

Also adds MaterialEditor module dependency for material graph manipulation.

Test plan

  • Create a new material via material_create with create_material operation
  • Add scalar/vector parameters via add_parameter
  • Add Custom HLSL node via add_custom_node
  • Wire parameters to custom node via wire_to_custom
  • Set HLSL code via set_custom_code
  • Connect to output via connect_output
  • Capture preview via material_preview
  • Test live_coding compile and status operations
  • Test editor_exit shows save dialog for dirty packages

🤖 Generated with Claude Code

New MCP tools for material authoring workflow:
- material_create: Create materials with Custom HLSL nodes, add parameters, wire connections
- material_preview: Capture material preview thumbnail as base64 JPEG
- live_coding: Trigger hot reload compilation (Ctrl+Alt+F11 equivalent)
- editor_exit: Gracefully close editor with save dialog for unsaved changes

Enhanced material tool:
- get_material_info now shows blend mode, shading model, two-sided
- Shows parameter nodes with names, types, and defaults
- Shows Custom nodes with code length, inputs, and connections

Adds MaterialEditor module dependency for material graph manipulation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant