Two arrays, three lines of wave equation on the CPU and a shader that turns the height field into water with refraction and a specular highlight. With adjustabl…
Posts
25.09.2026
2D water ripples
02.10.2026
3D water waves
Six Gerstner waves in the vertex shader, exact normals from the derivatives, foam from the Jacobian determinant and a buoy that the CPU floats on the water with…
09.10.2026
Ray marching
No triangles, just a distance function: a fragment shader walks through the scene in steps for every pixel, merges a sphere, a box and a torus and gets normals,…
16.10.2026
Voronoi diagrams
Scatter points, every pixel belongs to the nearest one. Brute force in the fragment shader, border distance instead of a difference, three metrics, Lloyd relaxa…