game_set_shader_param
Sets a shader parameter on a node's ShaderMaterial, letting you adjust material appearance or effects at runtime.
Instructions
Set a shader parameter on a node's material
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": {
"nodePath": "<nodePath>",
"paramName": "<paramName>",
"value": "<value>"
},
"name": "game_set_shader_param"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Value to set (number, object, array, etc.) | |
| nodePath | Yes | Path to the node with a ShaderMaterial | |
| typeHint | No | Optional type hint (e.g. "Color", "Vector2") | |
| paramName | Yes | Shader parameter name |