Create raymarch scene
create_raymarch_sceneCreate a self-contained GLSL TOP raymarcher for volumetric/SDF scenes, offering selectable scene types (sphere_field, menger, tunnel) and live controls for camera, speed, steps, intensity, and colors.
Instructions
Instantiate a self-contained GLSL TOP raymarcher (volumetric / signed-distance-field) — the 3D complement to create_shader_lib. Scenes: sphere_field (repeated spheres), menger (Menger-sponge fractal), tunnel (twisting tunnel). Exposes live CameraZ / Speed / StepCount / Intensity / ColorA / ColorB controls and previews the output TOP.
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": "create_raymarch_scene"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Which SDF scene to ray-march: sphere_field, menger (sponge fractal), or tunnel. | sphere_field |
| speed | No | Animation speed multiplier (drives uTime). Exposed as a live 'Speed' control. | |
| color_a | No | Near/primary colour as hex (e.g. '#33ccff'); parsed to 0..1 RGB, exposed as 'ColorA'. | |
| color_b | No | Far/secondary colour as hex (e.g. '#ff2266'); parsed to 0..1 RGB, exposed as 'ColorB'. | |
| camera_z | No | Camera distance back from the origin (uCameraZ). Exposed as a live 'CameraZ' control. | |
| intensity | No | Output brightness multiplier (uIntensity). Exposed as a live 'Intensity' control. | |
| resolution | No | Output resolution [width, height] of the GLSL TOP. | |
| step_count | No | Raymarch iterations (uSteps); higher = more detail/cost. Exposed as 'StepCount'. | |
| parent_path | No | Parent COMP path the self-contained 'raymarch_scene_<scene>' container is created inside. | /project1 |
| expose_controls | No | Expose live CameraZ / Speed / StepCount / Intensity / ColorA / ColorB controls. |