This repository contains the code to run a Radiance Cascade rendering, written in Odin and OpenGL.
- SDL3 (.dll in windows, development branch from package manager in linux)
- STB_image and STB_truetype (both can be built from Odin Vendor)
Simply download the repository and use odin run . to run the program.
Keybinds:
- Number 1: Select White wall/light
- Number 2: Select Black wall/light
- Number 3: Select Red wall/light
- Left click: Draw
- Right click: Calculate SDFs
While the rendering is in real time, the calculation of SDFs where left aside for lack of optimization to make the rendering faster.
To help in rendering and make a small GUI, I use my own OpenGL library. It can be found in my CrumbsGL repository. It probably isn't amazing, but it works for now!
Here are some of the sources I remember using in the project, but more where used. Search for them!
