set_fog
Adjust Three.js scene fog color, near/far or density, and background color in a live browser preview; changes are undoable and not saved to source.
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 scene fog (color, near/far or density) and the background color.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| far | No | Fog only | |
| near | No | Fog only | |
| color | No | #RRGGBB | |
| density | No | FogExp2 only | |
| background | No | Scene background color, #RRGGBB |