Experiments in light,
space and play.

3D, shaders, games and interactive pieces by Nir Peretz. Each one is its own little world.

shader2026

Shader Garden

Four fragment shaders on one fullscreen triangle. Raw WebGL2, no build step, no libraries.

  • webgl2
  • glsl
  • no build
shader2019

Let the Sunshine In

A sun built from custom GLSL, driven by the scroll wheel. TypeScript and three.js r104.

  • three.js r104
  • glsl
  • typescript
shader2013

Ray Tracer

A 2013 C++ ray tracer (soft shadows, glass, reflections, textures) rebuilt as a progressive GPU tracer: one path per pixel per frame, refining while you hold still.

  • three.js
  • glsl
  • ray tracing
  • huji cg