MCPcopy Index your code
hub / github.com/entropylost/amitabha

github.com/entropylost/amitabha @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
167 symbols 280 edges 13 files 10 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Amitābha: Reference Implementation of Holographic Radiance Cascades

This repository contains a sample implementation of Holographic Radiance Cascades (HRC), a variant of Radiance Cascades which can accurately resolve hard shadows and volumetrics with no added cost.

Other implementations: * Yaazarai/Volumetric-HRC: A full implementation by Yaazarai in Game Maker, which uses textures for storage. Has an explanation of HRC which is less technical than the paper. * Nihil: Implementation of HRC on the CPU treating lines as continuous functions which are bilinearly discretized. Has some useful volumetric DDA code and is quite simple, but has low quality and performance. * Shadertoy by Suslik: Web demo of HRC. Inefficient merging, and no extensions.

Gallery

Radial HRC

Radial HRC was an old implementation that used one grid per direction in order to test the hypothesis that RC could resolve sharp shadows so long as the probe spacing perpendicular to the rays was small at all levels.


Join the Radiance Cascades Discord for more information and to discuss the algorithm!

Extension points exported contracts — how you extend this code

FluenceType (Interface)
(no doc) [5 implementers]
src/fluence.rs
ToFluence (Interface)
(no doc) [5 implementers]
src/color.rs
Tracer (Interface)
(no doc) [4 implementers]
src/trace.rs
RadianceStorage (Interface)
Construct from kernel arg somehow. Then later there's like a Pyraimd::construct_storages() and then Pyramid[level] passi [1 …
src/storage.rs
Block (Interface)
(no doc) [3 implementers]
src/trace/voxel.rs
Transmittance (Interface)
(no doc) [4 implementers]
src/fluence.rs
ColorType (Interface)
(no doc) [4 implementers]
src/color.rs
WorldTracer (Interface)
(no doc) [3 implementers]
src/trace.rs

Core symbols most depended-on inside this repo

expr
called by 32
src/lib.rs
dispatch
called by 16
src/lib.rs
read
called by 15
src/trace/voxel.rs
restrict_angle
called by 12
src/fluence.rs
to_world
called by 11
src/trace.rs
load
called by 9
src/trace.rs
trace_to
called by 8
src/trace.rs
next
called by 7
src/lib.rs

Shape

Method 103
Class 32
Function 16
Interface 13
Enum 3

Languages

Rust100%

Modules by API surface

src/fluence.rs29 symbols
src/lib.rs25 symbols
src/trace.rs24 symbols
src/scene.rs19 symbols
src/color.rs19 symbols
src/trace/voxel.rs18 symbols
src/bin/multibounce.rs12 symbols
src/utils.rs8 symbols
src/render.rs6 symbols
src/storage.rs4 symbols
src/bin/julia.rs1 symbols
src/bin/default.rs1 symbols

For agents

$ claude mcp add amitabha \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact