/ray_tracer

Ray Tracing

Primary LanguageJavaScript

Ray traceing

A ray tracing implementation support:

  • Objects: Ball, triangle, implicit surface
  • Features: shadowing, reflection, refraction, anti-aliasing

Demo: click here

Requirements

  • LibSDL1.x or freeglut3-dev
  • C++11 support compiler
  • Emscripten for converting C++ to asm

Compilation

MakeFile is provided for native and JS compiling

  • To native code:
        1. cd ./src/
        2. make 
  • To JavaScript code:
        1. cd ./src/
        2. make js

Todo

  • Nagivate in space with keyboard