Skip to content

A simple ray tracer written in JavaScript using GPU.js to run shaders on the GPU. Currently supports directional and spot lights, soft shadows, specular reflections, fresnel and surface roughness.

License

Notifications You must be signed in to change notification settings

andrewbrg/andrewbrg.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RayTracing in JavaScript

Another simple ray tracer written in JavaScript which runs on your GPU in webgl by making use of the gpu.js library.

It currently does lambertian and specular shading, soft shadows and runs in realtime. There is no opacity implemented yet but different scenes can be configured and run.

View it online here: https://andrewbrg.github.io/dist/

To run the project the src directory should be built using webpack with the included makefile then the dist/index.html file should be opened in your browser.

To rebuild the dist directory once run

make provision

Run the following to rebuild it in realtime as you edit the src directory

make watch

GPU Raytracer

About

A simple ray tracer written in JavaScript using GPU.js to run shaders on the GPU. Currently supports directional and spot lights, soft shadows, specular reflections, fresnel and surface roughness.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages