Create raymarch scene
create_raymarch_sceneCreate a raymarch scene with pre-built SDF environments like sphere field, Menger sponge, or tunnel. Exposes live controls for camera, speed, step count, 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Which SDF scene to ray-march: sphere_field, menger (sponge fractal), or tunnel. | sphere_field |
| camera_z | No | Camera distance back from the origin (uCameraZ). Exposed as a live 'CameraZ' control. | |
| speed | No | Animation speed multiplier (drives uTime). Exposed as a live 'Speed' control. | |
| step_count | No | Raymarch iterations (uSteps); higher = more detail/cost. Exposed as 'StepCount'. | |
| intensity | No | Output brightness multiplier (uIntensity). Exposed as a live 'Intensity' 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'. | |
| resolution | No | Output resolution [width, height] of the GLSL TOP. | |
| expose_controls | No | Expose live CameraZ / Speed / StepCount / Intensity / ColorA / ColorB controls. | |
| parent_path | No | Parent COMP path the self-contained 'raymarch_scene_<scene>' container is created inside. | /project1 |