Loading...
BlogPortfolioWeb

Raytracer Update

Here’s a quick update.

I’ve been working on the signed distance field raytrace marcher. In this version I’ve done the following:

  • Soft reflections have been added.
  • Specular lighting has been changed from basic Phong to a Gaussian form.
  • Render the result to a texture and apply a filter.

So far the results are looking pretty good:

Open in new tab.

Keyboard Controls:
W, A, S, D - Movement
Left Arrow, Right Arrow - Rotate left and right.

Note: This example requires a browser that supports WebGL2.

As always, please feel free to try out the code for yourself: