home dev games gallery work
Lewpen.com»Research & Development»3D Graphics»WebGL»GLSL Raytracer»Raytracer 003 - 3 levels of reflection

Raytracer 003 - 3 levels of reflection

Recursive ray tracing to add reflection to the spheres

Files

webgl_fragment_framework.js 9,116 bytes
index.html 5,085 bytes
Related Articles

Using shadow rays to determine if the path between each pixel and the light source is blocked

First Test - Using a fragment shader to hit-test 3 spheres and colour each pixel based on the surface normal

Lets try it with 6 spheres this time

Adding a lighting model with specular (Phong) and diffuse lighting

Pushing it a bit with 16 spheres

Creating bumpy surfaces by perturbing the surface normal at each point

Adding a pearlescent effect by adjusting the brightness of each point by the sine of the distance from the camera

Games

The Dodge Game
Flatspace

2-Player Games:

Quake 2D
Meteora

Puzzle Games:

Mini Tetris
Sudoku Solver

Development

3D Graphics:

3D Graphics Articles
WebGL Examples
OpenGL Examples
Flash 3D Engine
Java 3D Engine

Development:

Programming Articles
Game Development Examples

Work

Portfolio
Clients
Startups & Projects
Expertise

Links

CubeLogix Studios
PHP Charts & Graphs
Local Legends Football