Ram Maheshwari Logo Image
Diego Fonseca

Raymarching Demo

This project served as a way to learn and master both SDF raymarching and volumetric raymarching.

Controls

  • W - Move forward
  • S - Move backwards
  • A - Move left
  • D - Move right
  • Q - Move up
  • E - Move down
  • Escape - Tab out

Project Overview

A semi-cross-platform SDF raymarching application that renders scenes with OpenGL. The current pipeline is fragment-based, with future plans to move heavy work to compute shaders.

Targets macOS (OpenGL 4.1 / GLSL 4.1) and Emscripten (WebGL 2.0 / GLSL ES 3.0) with a shared core layout across both builds.

Custom key events are still a bit rough, so you may need to press Escape multiple times to exit.

Tools Used

3D Math
C
WebAssembly
Emscripten
Lua
GLSL
OpenGL