WebGL Water (2010)

madebyevan.com

219 points by gaws 4 days ago


ketzo - 4 days ago

Saw the “made by Evan Wallace” and went “huh, that sounds familiar…”

Yeah, not surprising this guy went on to build Figma! Super cool

ByteAtATime - 4 days ago

Back in 2010, this "require[d] a decent graphics card"

Now, my phone's integrated graphics can run it very smoothly. Moore's law at play.

Exuma - 4 days ago

This is my most voted submission. This thing literally never gets old

chrisjj - 4 days ago

"Uncaught Error: This demo requires the OES_texture_float extension WebGL Water Made by Evan Wallace

This demo requires a decent graphics card and up-to-date drivers. If you can't run the demo, you can still see it on YouTube.

Interactions: Draw on the water to make ripples Drag the background to rotate the camera Press SPACEBAR to pause and unpause Drag the sphere to move it around Press the L key to set the light direction Press the G key to toggle gravity Features: Raytraced reflections and refractions Analytic ambient occlusion Heightfield water simulation * Soft shadows Caustics (see this for details) * * requires the OES_texture_float extension * requires the OES_standard_derivatives extension" on Android Chrome.

90s_dev - 4 days ago

On this note, can anyone recommend basic webgl 2d effects tutorial? I have a super exciting project I'm really close to announcing, but the last step is adding some pretty Animal Well style effects via webgl2, but I know practically nothing about webgl except the very very basics that you learn from webgl2fundamentals.org. Any pointers would be appreciated.

asadm - 4 days ago

Wasnt this one of the demo that Figma co-founder used make a case for web-based editor?

fulafel - 4 days ago

This is probably the first time (not counting ignored times) it was been posted which doesn't have comments about breakage on some browser.

Makes you wonder how long it takes that WebGPU reaches the same status.

andrewrn - 3 days ago

Very cool!

Something I noticed is that you can’t make perturbations on the surface of the water by rapidly moving the ball beneath the water.

Don’t have time to dig into the sim to know why, but that is a monitor flaw.

Later edit: ah, looks like rendering was the focus not sim, per the maker’s website.

Retr0id - 4 days ago

This has always been my "is webgl working?" test page

pjmlp - 4 days ago

After all these years, Android Chrome still doesn't support the extensions required by this demo, this is the issue with Web 3D adoption.

bobajeff - 4 days ago

I guess I'm the only one for whom this doesn't work I get:

'Uncaught Error: This demo requires the OES_texture_float extension'

landgenoot - 4 days ago

When you move the ball up, but keep it still under water, you'll see the water level rise.

Why?

dustbunny - 4 days ago

Is this open source?

Traubenfuchs - 4 days ago

…so how does water look like in 2025 on WebGPU?

gitroom - 4 days ago

Pretty cool how a basic demo like this still feels fresh, even on my old phone. Always makes me want to mess with web tech more.

NetOpWibby - 4 days ago

This is incredible. My goodness.

A_Stefan - 4 days ago

This example never ceases to amaze

earth2mars - 4 days ago

If you are on Android try Kiwi browser to see this

rbower - 4 days ago

[dead]

- 4 days ago
[deleted]
haidirul - 4 days ago

[flagged]