environment_setup
Configures ambient light color, energy, background mode, and sky color for a 3D scene by creating or updating a WorldEnvironment node in Godot.
Instructions
Set up environment and ambient lighting for a 3D scene.
Category: Light
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) parent_node_path: Path to the parent node environment_name: Name for the WorldEnvironment node (default: "WorldEnvironment") ambient_light_color: Ambient light color as JSON array [r, g, b] ambient_light_energy: Ambient light energy/intensity background_mode: Background mode (Sky, Color, Custom, default: Sky) sky_color: Sky color as JSON array [r, g, b] (for Color background mode)
Returns: Success message or error description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| parent_node_path | Yes | ||
| environment_name | No | WorldEnvironment | |
| ambient_light_color | No | ||
| ambient_light_energy | No | ||
| background_mode | No | Sky | |
| sky_color | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |