Skip to content

minas1/D_Raytracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Raytracing in D

A (very) simple raytracer written in the D programming language.

Features

  • Smooth shadows
  • Anti-aliasing

Prerequisites

How to run

  • Open a terminal in the source directory.
  • Execute rdmd main.d

After about 25" the image below will appear.

Alt text

Internals

The raytracer builds a Bounding Volume Hierarchy from the objects in the scene. This helps a lot since when testing for ray interesctions, not all objects have to checked. The BVH Tree is data structure is defined and created in BVH.d.

License

MIT

About

Raytracing in the D programming language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages