Skip to content

raytracer in haskell. I'm learning haskell as I write this so it's probably terrible.

Notifications You must be signed in to change notification settings

rooooooooob/ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ray

raytracer in haskell. I'm learning haskell as I write this so it's probably terrible.

Features

Lighting

  • Ambient, diffuse and specular lighting.
  • Reflections
  • Refractions (e.g. glass, water, etc)
  • Pointlights (raidal), Directional lights

Geometry

  • Spheres
  • Triangles and polygon meshes
  • Loading of OBJ format files as polygon meshes

Misc

  • Texture u-v mapping for spheres (todo: polygon meshes)

Todo

  • KD-tree spatial partitioning as an optimization for polygon mesh collision detection
  • uv-mapping for meshes
  • loading of normals and uv coordinates for OBJ files

About

raytracer in haskell. I'm learning haskell as I write this so it's probably terrible.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published