Skip to content

asbjornh/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTracer

F# implementation of The Ray Tracer Challenge by James Buck. If you haven't done the challenge you should! 🚀 It's tons of fun.

Extracurricular stuff

  • Soft shadows
  • Composable materials
  • Fresnel reflections
  • Textures (UV mapped)
    • Color, specular, ambient occlusion and alpha channels
    • Normal bump mapping
  • Ambient occlusion
  • Antialiasing

Sample renders

Prerequisites

.NET Core

mono-libgdiplus if you're on a mac. More here

Some scenes use textures. None of the textures are included in this repo, but some of them can be downloaded from 3dtextures.me.

Other scenes use external 3D models which are also not included in the repo.

Usage

dotnet run in RayTracer directory. Choose what scene to render in RayTracer/Program.fs. Existing scenes are in RayTracer/Scenes.

About

The Ray Tracer Challenge

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages