This example renders a very simple 3D scene of boxes and spheres
using a Raycasting algorithm, which can be used as base for a Raytracing.
This algorithm requires a lot of computational power, so it's almost impossibile to have a real-time
implementation in Javascript. Anyway it can be done using more powerful tools, like C++/CUDA C.
This demo shows how to get started with Raytracing with shadows and lights support.
- Use the ARROW KEYS to move around
- Press S to turn shadows on/off
- Press L to turn light on/off
- Press H to hide/show this frame