public 3d-motion repository
webgl-raytracing-test
// rynekryz/webgl-raytracing-test
Some glsl stuff
$ git log --oneline --stat
stars:2forks:0updated:2026-06-13
README.md
![]()
Screenshots


Features
- Real-time SDF ray marching
- Really nice reflections
- Some balls
- Drag and throw controls
- Sphere collision physics
- Gravity
- FPS / frame-time overlay
- Pure WebGL + fragment shader
- Can run literally on everything (not really), including an Aternos server (JK)
Technical Stack
- Rendering: WebGL with a GLSL fragment shader
- Physics: SDF ray marching and sphere collisions
- UI: HTML, CSS and vanilla JavaScript
- Language: JavaScript and GLSL
- Build: none
Requirements
- PC (optional)
Project Structure
webgl-raytracing-test/
├── index.html
├── render.js
├── shaders.glsl
└── ui.css
Notes
This isn't actual ray-tracing that uses RT cores, it uses SDF ray marching. So the rays are real-time, just not real RTX. But at least it looks good and can run on a potato lol.
metadata.json
JavaScript3dbrowserdemoglobal-illuminationShadersphysicsSimulationsraymarchingraytracingrealtime-renderingreflectionshadersWebGLwebgl2
[INFO] 3 topics link to curated motion topic pages.