set_fog
Modify scene fog properties including color, near/far distance or density, and background color with runtime preview. Requires user choice between temporary preview and permanent code update.
Instructions
Modify scene fog: color, near/far (Fog) or density (FogExp2), background color — runtime-only preview (lost on reload). ASK the user first: runtime preview or persistent code change?
Runtime preview — lost on page reload. You MUST ask the user first: runtime preview only, or also update source code?
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Fog color (#RRGGBB) | |
| near | No | Fog near distance (Fog type) | |
| far | No | Fog far distance (Fog type) | |
| density | No | Fog density (FogExp2 type) | |
| background | No | Scene background color (#RRGGBB) |