set_renderer
Modify renderer properties (tone mapping, exposure, color space, shadows) for runtime preview or persistent source code changes.
Instructions
Modify renderer: toneMapping, exposure, colorSpace, shadows — 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 |
|---|---|---|---|
| toneMapping | No | Tone mapping algorithm (0-7) | |
| toneMappingExposure | No | Exposure level | |
| outputColorSpace | No | Output color space (srgb, srgb-linear) | |
| pixelRatio | No | Device pixel ratio | |
| sortObjects | No | Sort objects before rendering | |
| localClippingEnabled | No | Enable local clipping planes | |
| shadowMapEnabled | No | Enable shadow mapping | |
| shadowMapType | No | Shadow map type (0=Basic, 1=PCF, 2=PCFSoft, 3=VSM) |