https://github.com/kgabis/raytracer
Raytracer in C.
https://github.com/kgabis/raytracer
c graphics raytracer
Last synced: 6 months ago
JSON representation
Raytracer in C.
- Host: GitHub
- URL: https://github.com/kgabis/raytracer
- Owner: kgabis
- Created: 2013-04-09T15:51:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T09:10:48.000Z (over 8 years ago)
- Last Synced: 2025-03-26T10:03:34.572Z (7 months ago)
- Topics: c, graphics, raytracer
- Language: C
- Homepage:
- Size: 557 KB
- Stars: 27
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
A raytracer in C. It has shadows, reflections, lightning ([phong model](http://en.wikipedia.org/wiki/Phong_reflection_model)). You can build it with [CSFML 2.0](http://www.sfml-dev.org/download.php) 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

## License
[The MIT License (MIT)](http://opensource.org/licenses/mit-license.php)