Loading video...

Video Failed to Load

Go Home

Over the last few weeks I was working on SwissGL, tiny JS graphics library with a single function that does everything. Demos: Code:

59,023 views • 3 years ago •via X (Twitter)

10 Comments

Alex Mordvintsev's profile picture
Alex Mordvintsev3 years ago

The library is just ~500loc, no dependencies. I made it because I got tired writing WebGL boilerplates for gpu simulations and visualizations again and again. The focus is in brevity and expressivity, none of demos I made it longer than 100 lines

Adam Stox's profile picture
Adam Stox3 years ago

This is so cool!! But where was this a few months ago when I gave up on web graphics frameworks and decided to teach myself webGL?? *cries in precision highp float*

Alex Mordvintsev's profile picture
Alex Mordvintsev3 years ago

Don't worry, you still need to write everything in glsl. SwissGL is there to take care of boring verbose WebGL stuff

MB333's profile picture
MB3333 years ago

Physarum is so good! amazing work

ECKER_O_'s profile picture
ECKER_O_3 years ago

This is awesome! Thank you! Will try it out. And I think it still pays off learning webgl and understanding what’s going on even when using great tools like this. Webgl is horrible to debug if you don’t have a clue. Been there…

Alex Mordvintsev's profile picture
Alex Mordvintsev3 years ago

This tiny library impies good understanding of WebGL, it's just a helper handle object management, so that we could focus on interesting parts

▥⟣▥⟣ ⦓ ⧉ ⦔ ▥⬡◫'s profile picture
▥⟣▥⟣ ⦓ ⧉ ⦔ ▥⬡◫3 years ago

Is there a way i could turn this into a music visualizer?

dek's profile picture
dek3 years ago

hey, does it support loading / drawing of (image) textures?

Alex Mordvintsev's profile picture
Alex Mordvintsev3 years ago

There is 'data' attribute, but I didn't try passing anything other than TypedArray yet (Spectrogram demo). I need to make an example on using external textures

Marcin Ignac's profile picture
Marcin Ignac3 years ago

@ajflores1604 Thanks for pex-context mention!

Related Videos