Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 626 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 626 Bytes

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