Skip to content

Pure-C# ray tracer - zero external assets

Mirrors, glass, and light, traced for real.

Reality Optics is a recursive Whitted ray tracer written entirely in C# over the .NET base library - no engine, no shaders, no image files. Every reflection is a real bounced ray, every shadow is a real visibility test, and glass really refracts. Color is solved in linear space and tonemapped at output; the same lighting solver runs inside the reflections, so coloured per-light shadows show up in the mirror too.

  • 9/9 optics invariants pass
  • Fresnel-Schlick reflectance
  • Beer-Lambert glass tint
  • ~4.8s to render both scenes
  • 0 warnings / 0 errors