set_shadow
Adjust shadow casting and receiving on Three.js objects, and tune light bias, map size, and shadow camera settings in the live browser preview. Changes are pending and undoable.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Change shadow casting/receiving on any object, and bias/mapSize/shadow camera on lights.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_shadow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bias | No | Light only, e.g. -0.0001 | |
| name | No | Object or light name | |
| uuid | No | Object or light UUID | |
| radius | No | Blur radius (light only) | |
| mapSize | No | [width, height] shadow map resolution | |
| cameraFar | No | ||
| cameraTop | No | DirectionalLight | |
| cameraLeft | No | DirectionalLight | |
| cameraNear | No | ||
| castShadow | No | ||
| normalBias | No | Light only | |
| blurSamples | No | VSM blur samples (light only) | |
| cameraRight | No | DirectionalLight | |
| cameraBottom | No | DirectionalLight | |
| receiveShadow | No |