◀ VibeCruiser

waterfall webgl2

A free particle demo — play it in your browser, no install. A WebGL 2 waterfall simulation from a simple particles system.

by @piellardj · piellardj/waterfall-webgl2 on GitHubLANG JavaScript★ 11HOSTED ON PIELLARDJ.GITHUB.IOUPDATED 22 Feb 2018

Vote and save it — free account with email or sign in with GitHub

Made this, @piellardj? See how many people played it → or use email

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

A WebGL 2 waterfall simulation from a simple particles system.

This is a WebGL 2 port of my WebGL project Waterfall.

WebGL 2 transform feedback feature is now used to update the particles' positions and velocities at once. The code is simpler, but there is one downside: since transform feedback only handles 4 bytes types, I now use Float32 precision when 16 bits would be enough. I could however try to pack 2 particles into a Uint32 and extract it in the shaders. all shaders are now in version GLSL 300 ES. since WebGL 2 handles more texture formats, the obstacle map is now a RG8 texture.

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →