o
odinpkg.dev
packages / library / RadianceCascades-odin

RadianceCascades-odin

676dd8blibrary

Radiance cascades implementation with Odin and OpenGL

No license · updated 8 months ago

Radiance Cascades Odin

This repository contains the code to run a Radiance Cascade rendering, written in Odin and OpenGL.

Dependencies

  • SDL3 (.dll in windows, development branch from package manager in linux)
  • STB_image and STB_truetype (both can be built from Odin Vendor)

How to use

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.

radiance

CrumbsGL

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!

Sources

Here are some of the sources I remember using in the project, but more where used. Search for them!