Skip to content

tatsuroro/floating-nodes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nodes

I've been experimenting with WebGL and writing raw GLSL shaders lately. This is a little thing I wrote which manages to do all the animation calculations, including the positions of all particles and edges and the computations required to find distances and set colors, in the shaders. The only changing inputs to the shaders from frame to frame during the animation loop are a timestamp and mouse coordinates.

Thanks to the TWGL, a "Tiny WebGL Helper Library", which takes care of a lot of the WebGL boilerplate.


Run it yourself:

npm install
npm run watch

Then:

npm run serve

And point your browser to localhost:4343.


See it in action here: tbaldw.in/nodes or check out the code at github.com/rolyatmax/floating-nodes.

About

more webgl fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.7%
  • CSS 6.4%
  • GLSL 2.4%
  • HTML 1.5%