Skip to content

331uw13/RaymarchSandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaymarchSandbox

References for raymarching from iq: https://iquilezles.org/articles/


Features

  • 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.

Building instructions.

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)


About internal.glsl

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.


Configuration file (rmsb.ini)

[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

image

image

image

image


Recent Updates

  • 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

About

Shader coding tool for fun

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published