正在加载视频...

视频加载失败

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

59,011 次观看 • 3 年前 •via X (Twitter)

10 条评论

Alex Mordvintsev 的头像
Alex Mordvintsev3 年前

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 的头像
Adam Stox3 年前

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 的头像
Alex Mordvintsev3 年前

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

MB333 的头像
MB3333 年前

Physarum is so good! amazing work

ECKER_O_ 的头像
ECKER_O_3 年前

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 的头像
Alex Mordvintsev3 年前

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

▥⟣▥⟣ ⦓ ⧉ ⦔ ▥⬡◫ 的头像
▥⟣▥⟣ ⦓ ⧉ ⦔ ▥⬡◫3 年前

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

dek 的头像
dek3 年前

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

Alex Mordvintsev 的头像
Alex Mordvintsev3 年前

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 的头像
Marcin Ignac2 年前

@ajflores1604 Thanks for pex-context mention!

相关视频