Skip to content

kgabis/raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A raytracer in C. It has shadows, reflections, lightning (phong model). You can build it with CSFML 2.0 or libPNG.

Usage

You could use included xcode project, or use a makefile located in raytracer directory. If you have CSFML 2.0 installed, then use make with_csfml, otherwise use make with_libpng (use apt-get or brew or whatever to get libpng). It has 3 hardcoded demos, you can edit scene.c to change them.

For instance:

./raytracer teapot

Have fun.

Screenshots

frist
second

License

The MIT License (MIT)