/ray-tracing-js

An implementation of ray tracing algorithm using JavaScript.

Primary LanguageJavaScript

Ray Tracing

一种基于JS的光线追踪算法实现

Usage

  • upload an obj file and uncomment the associated code block

Result

Sphere

  • Point Light

image

  • Directional Light

image

Scene01

  • Point Light

image

  • Directional Light

image

Scene02

  • Directional Light

image