material_set_subroutine
Sets the shader for a specified material slot (e.g., transparency, reflectivity) and returns the slot's field names.
Instructions
Set the shader of a material slot, e.g. ('transparency', 'Cutout'), ('reflectivity', 'Metalness'), ('surface', 'Normals'). Slots: subdivision, displacement, surface, microsurface, albedo, diffusion, transmission, reflectivity, reflection, clearcoat reflection, clearcoat microsurface, clearcoat reflectivity, occlusion, emissive, transparency, texture. Returns the slot's field names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| slot | Yes | ||
| shader | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||