Made with raylib (https://github.com/raysan5/raylib) and imgui (https://github.com/ocornut/imgui)
References for raymarching from iq: https://iquilezles.org/articles/
- Built-in functions for raymarching.
- Text editor with GLSL syntax highlight.
- Custom uniform inputs. (texture input not implemented yet.)
- First person camera support.
- Reflective materials.
- Translucent materials.
- Ambient occlusion.
- Soft shadows.
Currently only GNU/Linux is supported.
git clone https://github.com/331uw13/RaymarchSandbox.git
cd RaymarchSandbox
git clone https://github.com/ocornut/imgui.git
make -j4
./rmsb examples/intro.glsl
(examples/intro.glsl
has instructions for getting started)
Note
Work in progress. Some functions may change without warning.
internal.glsl
is the "library" for the Raymarch Sandbox.
It has all the functions written to allow user to create 3D scenes.
By default it contains useful functions for raymarching, coloring the materials, gradient noise functions and miscellaneous utilities.
Reloading it is also supported at runtime.
[render_settings]
fps_limit = 300
fov = 60.0
hit_distance = 0.001
mx_ray_length = 300.0
ao_step = 0.01
ao_samples = 32
ao_falloff = 3.0
translucent_step = 0.1
render_resolution = FULL
custom_render_resolution_X = 0
custom_render_resolution_Y = 0
render_resolution
Options: FULL, HALF or CUSTOM
- Tue Jul 29 2025
- Added file browser.
- Shaders can be opened with file browser now.
- Added config file using: https://github.com/benhoyt/inih
- Sun Jul 27 2025
- Added ambient occlusion.
- Added mandelbulb fractal example.
- Updated internal.glsl
- Small improvements.
- Mon Jul 21 2025
- Changes to fog.
- Fixed fog blending with translucent materials.
- Added soft shadows.
- Tue Jul 15 2025
- Changed how colors are handled for rays.
- Changed undo functionality.
- Updated internal.glsl
- Shader errors now report the correct row for the user
- Changed examples